diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e01e74ef..e86e0d4b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,6 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macOS-latest] - python_version: [3.9] steps: - uses: actions/checkout@v3 with: @@ -25,7 +24,7 @@ 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: | @@ -58,7 +57,6 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python_version: [3.9] steps: - uses: actions/checkout@v3 with: @@ -66,7 +64,7 @@ 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