From c0a250af25484f0fa954a86d6af8410c5360f934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Wed, 6 Dec 2023 09:47:31 +0100 Subject: [PATCH] ci: replaced `python_version` matrix var with `python-version-file: pyproject.toml` --- .github/workflows/build.yml | 6 +++--- .github/workflows/lint.yml | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4b74ae57..adf65a58 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,14 +8,13 @@ on: jobs: build: - name: Test on ${{ matrix.os }}, py-${{ matrix.python_version }} + name: Test on ${{ matrix.os }} runs-on: ${{ matrix.os }} env: RELEASE: false strategy: matrix: os: [ubuntu-latest, windows-latest, macOS-latest] - python_version: [3.8] steps: - uses: actions/checkout@v3 with: @@ -23,7 +22,8 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: ${{ matrix.python_version }} + python-version-file: pyproject.toml + - name: Install dependencies shell: bash run: | diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f9ba1422..95c97fda 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,6 +12,8 @@ jobs: steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 + with: + python-version-file: pyproject.toml - uses: jpetrucciani/ruff-check@main format: @@ -19,4 +21,6 @@ jobs: steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 + with: + python-version-file: pyproject.toml - uses: psf/black@stable