Skip to content

Commit 568d867

Browse files
committed
Corrected github actions
1 parent ac5b3c2 commit 568d867

3 files changed

Lines changed: 13 additions & 20 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,21 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v2
1515
- name: Set up Python 3
16-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@v5
1717
with:
18-
python-version: 3.9
18+
python-version: '>=3.9'
1919
- name: fmtcheck
2020
run: make fmtcheck
2121

2222
build:
2323
runs-on: ubuntu-latest
24-
strategy:
25-
matrix:
26-
python-version: [ 3.6, 3.7, 3.8, 3.9 ]
27-
2824
steps:
2925
- uses: actions/checkout@v2
3026

31-
- name: Set up Python ${{ matrix.python-version }}
32-
uses: actions/setup-python@v2
27+
- name: Set up Python
28+
uses: actions/setup-python@v5
3329
with:
34-
python-version: ${{ matrix.python-version }}
30+
python-version: '>=3.9'
3531
- name: Upgrade pip and virtualenv to latest
3632
run: pip install --upgrade pip virtualenv
3733
- name: Test with pytest

.github/workflows/python-publish.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,19 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v2
2020
- name: Set up Python 3
21-
uses: actions/setup-python@v2
21+
uses: actions/setup-python@v5
2222
with:
23-
python-version: 3.9
23+
python-version: '>=3.9'
2424
- name: fmtcheck
2525
run: make fmtcheck
2626
build:
2727
runs-on: ubuntu-latest
28-
strategy:
29-
matrix:
30-
python-version: [3.6, 3.7, 3.8, 3.9]
3128
steps:
3229
- uses: actions/checkout@v2
33-
- name: Set up Python ${{ matrix.python-version }}
34-
uses: actions/setup-python@v2
30+
- name: Set up Python
31+
uses: actions/setup-python@v5
3532
with:
36-
python-version: ${{ matrix.python-version }}
33+
python-version: '>=3.9'
3734
- name: Upgrade pip and virtualenv to latest
3835
run: pip install --upgrade pip virtualenv
3936
- name: Test with pytest
@@ -44,9 +41,9 @@ jobs:
4441
steps:
4542
- uses: actions/checkout@v2
4643
- name: Set up Python
47-
uses: actions/setup-python@v2
44+
uses: actions/setup-python@v5
4845
with:
49-
python-version: '3.x'
46+
python-version: '>=3.9'
5047
- name: Install dependencies
5148
run: |
5249
python -m pip install --upgrade pip

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ commands = pytest --cov {posargs:-n auto}
3737

3838
[testenv:fmt]
3939
description = run code formatting using black
40-
basepython = python3.9
40+
basepython = python
4141
deps = black==22.6.0
4242
commands = black . {posargs}
4343
skip_install = true

0 commit comments

Comments
 (0)