Skip to content

Commit 63e1304

Browse files
committed
ci: replaced python_version matrix var with python-version-file: pyproject.toml
1 parent 3d3949a commit 63e1304

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,14 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
os: [ubuntu-latest, windows-latest, macOS-latest]
20-
python_version: [3.9]
2120
steps:
2221
- uses: actions/checkout@v3
2322
with:
2423
submodules: 'recursive'
2524
- name: Set up Python
2625
uses: actions/setup-python@v4
2726
with:
28-
python-version: ${{ matrix.python_version }}
27+
python-version-file: pyproject.toml
2928
- name: Install dependencies
3029
shell: bash
3130
run: |
@@ -58,15 +57,14 @@ jobs:
5857
strategy:
5958
matrix:
6059
os: [ubuntu-latest]
61-
python_version: [3.9]
6260
steps:
6361
- uses: actions/checkout@v3
6462
with:
6563
submodules: 'recursive'
6664
- name: Set up Python
6765
uses: actions/setup-python@v4
6866
with:
69-
python-version: ${{ matrix.python_version }}
67+
python-version-file: pyproject.toml
7068
- name: Install dependencies
7169
shell: bash
7270
run: |

.github/workflows/lint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,15 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v3
1414
- uses: actions/setup-python@v4
15+
with:
16+
python-version-file: pyproject.toml
1517
- uses: jpetrucciani/ruff-check@main
1618

1719
format:
1820
runs-on: ubuntu-latest
1921
steps:
2022
- uses: actions/checkout@v3
2123
- uses: actions/setup-python@v4
24+
with:
25+
python-version-file: pyproject.toml
2226
- uses: psf/black@stable

0 commit comments

Comments
 (0)