Skip to content

Commit 368733f

Browse files
committed
Add a simple integration test
1 parent 7619212 commit 368733f

File tree

1 file changed

+61
-28
lines changed

1 file changed

+61
-28
lines changed

.github/workflows/test.yml

Lines changed: 61 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,75 @@
11
name: Test
22

3-
on: [push, pull_request, workflow_dispatch]
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
47

58
permissions: {}
69

710
env:
811
FORCE_COLOR: 1
912

1013
jobs:
11-
test:
12-
runs-on: ${{ matrix.os }}
14+
integration:
15+
name: Integration test
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-python@v5
20+
with:
21+
python-version: "3.13"
22+
23+
- name: Set up requirements
24+
run: |
25+
python -m pip install --upgrade pip
26+
python -m pip install -r requirements.txt
27+
28+
- name: Build documentation
29+
run: >
30+
python ./build_docs.py
31+
--quick
32+
--build-root ./build_root
33+
--www-root ./www
34+
--log-directory ./logs
35+
--group "$(id -g)"
36+
--skip-cache-invalidation
37+
--languages en
38+
--branches 3.14
39+
40+
- name: Display docsbuild.log
41+
if: always()
42+
run: cat ./logs/docsbuild.log
43+
44+
unit:
45+
name: Unit tests
46+
runs-on: ubuntu-latest
1347
strategy:
1448
fail-fast: false
1549
matrix:
16-
python-version: ["3.13", "3.14"]
17-
os: [ubuntu-latest]
50+
python-version:
51+
- "3.13"
52+
- "3.14"
1853

1954
steps:
20-
- uses: actions/checkout@v4
21-
with:
22-
persist-credentials: false
23-
24-
- name: Set up Python ${{ matrix.python-version }}
25-
uses: actions/setup-python@v5
26-
with:
27-
python-version: ${{ matrix.python-version }}
28-
allow-prereleases: true
29-
30-
- name: Install uv
31-
uses: hynek/setup-cached-uv@v2
32-
33-
- name: Tox tests
34-
run: |
35-
uvx --with tox-uv tox -e py
36-
37-
- name: Upload coverage
38-
uses: codecov/codecov-action@v5
39-
with:
40-
flags: ${{ matrix.os }}
41-
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
42-
token: ${{ secrets.CODECOV_ORG_TOKEN }}
55+
- uses: actions/checkout@v4
56+
with:
57+
persist-credentials: false
58+
59+
- name: Set up Python ${{ matrix.python-version }}
60+
uses: actions/setup-python@v5
61+
with:
62+
python-version: ${{ matrix.python-version }}
63+
allow-prereleases: true
64+
65+
- name: Install uv
66+
uses: hynek/setup-cached-uv@v2
67+
68+
- name: Tox tests
69+
run: uvx --with tox-uv tox -e py
70+
71+
- name: Upload coverage
72+
uses: codecov/codecov-action@v5
73+
with:
74+
name: Python ${{ matrix.python-version }}
75+
token: ${{ secrets.CODECOV_ORG_TOKEN }}

0 commit comments

Comments
 (0)