Skip to content

Commit 42f9e6b

Browse files
committed
Fix build workflow
1 parent cc88794 commit 42f9e6b

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ jobs:
1111
os: [ ubuntu-latest, macos-latest, windows-latest ]
1212
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12", "3.13" ]
1313
fail-fast: false
14-
runs-on: ${{ matrix.os }}
15-
steps:
16-
- uses: actions/checkout@v4 # https://github.com/actions/checkout
17-
with:
18-
# Only a single commit is fetched by default, for the ref/SHA that triggered the workflow.
19-
# Set fetch-depth: 0 to fetch all history for all branches and tags.
20-
fetch-depth: 0 # Needed for setuptools_scm to work correctly
21-
- uses: actions/setup-python@v5 # https://github.com/actions/setup-python
22-
with:
23-
python-version: ${{ matrix.python-version }}
24-
allow-prereleases: true
25-
- name: Install dependencies
26-
run: python -m pip install --upgrade pip setuptools setuptools-scm nox
27-
- name: Run tests and post coverage results
28-
env:
29-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30-
run: python -m nox --non-interactive --session tests-${{ matrix.python-version }} # Run nox for a single version of Python
14+
runs-on: ${{ matrix.os }}
15+
steps:
16+
- uses: actions/checkout@v4 # https://github.com/actions/checkout
17+
with:
18+
# Only a single commit is fetched by default, for the ref/SHA that triggered the workflow.
19+
# Set fetch-depth: 0 to fetch all history for all branches and tags.
20+
fetch-depth: 0 # Needed for setuptools_scm to work correctly
21+
- uses: actions/setup-python@v5 # https://github.com/actions/setup-python
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
allow-prereleases: true
25+
- name: Install dependencies
26+
run: python -m pip install --upgrade pip setuptools setuptools-scm nox
27+
- name: Run tests and post coverage results
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
run: python -m nox --non-interactive --session tests-${{ matrix.python-version }} # Run nox for a single version of Python

0 commit comments

Comments
 (0)