You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This workflow will install Python dependencies and lint with a single version of Python
2
-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3
-
4
-
# This workflow will upload a Python Package using Twine when a release is created
5
-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
6
-
7
-
# This workflow uses actions that are not certified by GitHub.
8
-
# They are provided by a third-party and are governed by
9
-
# separate terms of service, privacy policy, and support
10
-
# documentation.
11
-
12
-
13
1
name: Python application
14
2
15
-
16
3
on:
17
4
release:
18
5
types: [published]
@@ -23,30 +10,15 @@ permissions:
23
10
24
11
jobs:
25
12
build:
26
-
27
13
runs-on: ubuntu-latest
28
14
environment: release
29
15
permissions:
30
16
id-token: write
31
17
steps:
32
18
- uses: actions/checkout@v4
33
-
- name: Set up Python 3.12
34
-
uses: actions/setup-python@v3
35
-
with:
36
-
python-version: "3.12"
37
-
- name: Install dependencies
38
-
run: |
39
-
python -m pip install --upgrade pip
40
-
pip install flake8
41
-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
42
-
- name: Lint with flake8
43
-
run: |
44
-
# stop the build if there are Python syntax errors or undefined names
0 commit comments