Skip to content

Commit

Permalink
ci: replaced python_version matrix var with `python-version-file: p…
Browse files Browse the repository at this point in the history
…yproject.toml`
  • Loading branch information
ErikBjare committed Dec 6, 2023
1 parent 68ecf59 commit c0a250a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@ 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:
submodules: 'recursive'
- 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: |
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version-file: pyproject.toml
- uses: jpetrucciani/ruff-check@main

format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version-file: pyproject.toml
- uses: psf/black@stable

0 comments on commit c0a250a

Please sign in to comment.