|
1 | 1 | name: Test
|
2 | 2 |
|
3 |
| -on: [push, pull_request, workflow_dispatch] |
| 3 | +on: |
| 4 | + push: |
| 5 | + pull_request: |
| 6 | + workflow_dispatch: |
4 | 7 |
|
5 | 8 | permissions: {}
|
6 | 9 |
|
7 | 10 | env:
|
8 | 11 | FORCE_COLOR: 1
|
9 | 12 |
|
10 | 13 | 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 | + with: |
| 20 | + persist-credentials: false |
| 21 | + - uses: actions/setup-python@v5 |
| 22 | + with: |
| 23 | + python-version: "3.13" |
| 24 | + |
| 25 | + - name: Set up requirements |
| 26 | + run: | |
| 27 | + python -m pip install --upgrade pip |
| 28 | + python -m pip install -r requirements.txt |
| 29 | +
|
| 30 | + - name: Build documentation |
| 31 | + run: > |
| 32 | + python ./build_docs.py |
| 33 | + --quick |
| 34 | + --build-root ./build_root |
| 35 | + --www-root ./www |
| 36 | + --log-directory ./logs |
| 37 | + --group "$(id -g)" |
| 38 | + --skip-cache-invalidation |
| 39 | + --languages en |
| 40 | + --branches 3.14 |
| 41 | +
|
| 42 | + unit: |
| 43 | + name: Unit tests |
| 44 | + runs-on: ubuntu-latest |
13 | 45 | strategy:
|
14 | 46 | fail-fast: false
|
15 | 47 | matrix:
|
16 |
| - python-version: ["3.13", "3.14"] |
17 |
| - os: [ubuntu-latest] |
| 48 | + python-version: |
| 49 | + - "3.13" |
| 50 | + - "3.14" |
18 | 51 |
|
19 | 52 | 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 }} |
| 53 | + - uses: actions/checkout@v4 |
| 54 | + with: |
| 55 | + persist-credentials: false |
| 56 | + |
| 57 | + - name: Set up Python ${{ matrix.python-version }} |
| 58 | + uses: actions/setup-python@v5 |
| 59 | + with: |
| 60 | + python-version: ${{ matrix.python-version }} |
| 61 | + allow-prereleases: true |
| 62 | + |
| 63 | + - name: Install uv |
| 64 | + uses: hynek/setup-cached-uv@v2 |
| 65 | + |
| 66 | + - name: Tox tests |
| 67 | + run: uvx --with tox-uv tox -e py |
| 68 | + |
| 69 | + - name: Upload coverage |
| 70 | + uses: codecov/codecov-action@v5 |
| 71 | + with: |
| 72 | + name: Python ${{ matrix.python-version }} |
| 73 | + token: ${{ secrets.CODECOV_ORG_TOKEN }} |
0 commit comments