Skip to content

Commit 82e6aec

Browse files
authored
CI: Move friend projects to own job (#116)
1 parent 2f5b2d5 commit 82e6aec

File tree

4 files changed

+24
-11
lines changed

4 files changed

+24
-11
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
fetch-depth: 0
2525

26-
- uses: hynek/build-and-inspect-python-package@v1
26+
- uses: hynek/build-and-inspect-python-package@v2
2727

2828
# Upload to Test PyPI on every commit on main.
2929
release-test-pypi:
@@ -40,7 +40,7 @@ jobs:
4040

4141
steps:
4242
- name: Download packages built by build-and-inspect-python-package
43-
uses: actions/download-artifact@v3
43+
uses: actions/download-artifact@v4
4444
with:
4545
name: Packages
4646
path: dist
@@ -64,7 +64,7 @@ jobs:
6464

6565
steps:
6666
- name: Download packages built by build-and-inspect-python-package
67-
uses: actions/download-artifact@v3
67+
uses: actions/download-artifact@v4
6868
with:
6969
name: Packages
7070
path: dist

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
steps:
2121
- uses: actions/checkout@v4
22-
- uses: actions/setup-python@v4
22+
- uses: actions/setup-python@v5
2323
with:
2424
python-version: "3.x"
25-
- uses: pre-commit/[email protected].0
25+
- uses: pre-commit/[email protected].1

.github/workflows/tests.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
# friend projects below to the latest one
2222
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
2323
os: [ubuntu-latest, macos-latest, windows-latest]
24+
test-set: [base]
25+
include:
26+
- {python-version: "3.13", os: ubuntu-latest, test-set: friend-projects}
2427
exclude:
2528
# TODO Add Windows when regex wheel available for 3.13
2629
- {os: windows-latest, python-version: "3.13"}
@@ -29,7 +32,7 @@ jobs:
2932
- uses: actions/checkout@v4
3033

3134
- name: Set up Python ${{ matrix.python-version }}
32-
uses: actions/setup-python@v4
35+
uses: actions/setup-python@v5
3336
with:
3437
python-version: ${{ matrix.python-version }}
3538
allow-prereleases: true
@@ -42,14 +45,14 @@ jobs:
4245
pip install -U tox
4346
4447
- name: Download more tests from friend projects
45-
if: matrix.python-version == '3.13' && matrix.os == 'ubuntu-latest'
48+
if: matrix.test-set == 'friend-projects'
4649
run: sh download-more-tests.sh
4750
- name: Tox tests
4851
run: |
4952
tox -e py
5053
5154
- name: Upload coverage
52-
uses: codecov/codecov-action@v3
55+
uses: codecov/codecov-action@v4
5356
with:
5457
flags: ${{ matrix.os }}
5558
name: ${{ matrix.os }} Python ${{ matrix.python-version }}

.pre-commit-config.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.2.2
3+
rev: v0.6.2
44
hooks:
55
- id: ruff
66
args: ["--exit-non-zero-on-fix"]
77
- id: ruff-format
88

99
- repo: https://github.com/pre-commit/pre-commit-hooks
10-
rev: v4.5.0
10+
rev: v4.6.0
1111
hooks:
1212
- id: check-case-conflict
1313
- id: check-merge-conflict
@@ -19,14 +19,24 @@ repos:
1919
- id: trailing-whitespace
2020
exclude: tests/fixtures/xfail/trailing-whitespaces.rst
2121

22+
- repo: https://github.com/python-jsonschema/check-jsonschema
23+
rev: 0.29.2
24+
hooks:
25+
- id: check-github-workflows
26+
27+
- repo: https://github.com/rhysd/actionlint
28+
rev: v1.7.1
29+
hooks:
30+
- id: actionlint
31+
2232
- repo: https://github.com/tox-dev/pyproject-fmt
2333
rev: 1.7.0
2434
hooks:
2535
- id: pyproject-fmt
2636
additional_dependencies: [tox]
2737

2838
- repo: https://github.com/abravalheri/validate-pyproject
29-
rev: v0.16
39+
rev: v0.19
3040
hooks:
3141
- id: validate-pyproject
3242

0 commit comments

Comments
 (0)