Skip to content

Commit a078a99

Browse files
committed
♻️ EDIT: Fix merge conflicts with docker#22676
1 parent 142f127 commit a078a99

File tree

2 files changed

+27
-164
lines changed

2 files changed

+27
-164
lines changed

content/guides/python/configure-ci-cd.md

Lines changed: 0 additions & 162 deletions
This file was deleted.

content/guides/python/configure-github-actions.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Automate your builds with GitHub Actions
33
linkTitle: Automate your builds with GitHub Actions
4-
weight: 20
4+
weight: 40
55
keywords: ci/cd, github actions, python, flask
66
description: Learn how to configure CI/CD using GitHub Actions for your Python application.
77
aliases:
@@ -60,6 +60,27 @@ on:
6060
- main
6161

6262
jobs:
63+
lint-test:
64+
runs-on: ubuntu-latest
65+
steps:
66+
- uses: actions/checkout@v4
67+
68+
- name: Set up Python
69+
uses: actions/setup-python@v5
70+
with:
71+
python-version: '3.12'
72+
73+
- name: Install dependencies
74+
run: |
75+
python -m pip install --upgrade pip
76+
pip install -r requirements.txt
77+
78+
- name: Run pre-commit hooks
79+
run: pre-commit run --all-files
80+
81+
- name: Run pyright
82+
run: pyright
83+
6384
build_and_push:
6485
runs-on: ubuntu-latest
6586
steps:
@@ -97,7 +118,11 @@ When the workflow is complete, go to your [repositories on Docker Hub](https://h
97118

98119
## Summary
99120

100-
In this section, you learned how to set up a GitHub Actions workflow for your Python application.
121+
In this section, you learned how to set up a GitHub Actions workflow for your Python application that includes:
122+
123+
- Running pre-commit hooks for linting and formatting
124+
- Static type checking with Pyright
125+
- Building and pushing Docker images
101126

102127
Related information:
103128

0 commit comments

Comments
 (0)