Skip to content

Commit cda65bc

Browse files
(ci) explicitly use 3.9 for pypi
1 parent 94a6afb commit cda65bc

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

.github/workflows/python-publish.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Upload Python Package
22

33
on:
44
release:
5-
types: [published]
5+
types: [ published ]
66

77
permissions:
88
contents: read
@@ -12,29 +12,29 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v4
16-
17-
- name: Set up Python
18-
uses: actions/setup-python@v3
19-
with:
20-
python-version: '3.x'
21-
22-
- name: Install dependencies
23-
run: |
24-
python -m pip install --upgrade pip
25-
pip install -r requirements.txt
26-
pip install -r dev_requirements.txt
27-
28-
- name: Lint with flake8
29-
run: |
30-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
31-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
32-
33-
- name: Build package
34-
run: python -m build
35-
36-
- name: Publish package
37-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
38-
with:
39-
user: __token__
40-
password: ${{ secrets.PYPI_API_TOKEN }}
15+
- uses: actions/checkout@v4
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v3
19+
with:
20+
python-version: '3.9'
21+
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install -r requirements.txt
26+
pip install -r dev_requirements.txt
27+
28+
- name: Lint with flake8
29+
run: |
30+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
31+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
32+
33+
- name: Build package
34+
run: python -m build
35+
36+
- name: Publish package
37+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
38+
with:
39+
user: __token__
40+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)