Skip to content

Commit 16071e4

Browse files
committed
Split jobs
1 parent 4e81718 commit 16071e4

File tree

2 files changed

+26
-15
lines changed

2 files changed

+26
-15
lines changed

Diff for: .github/workflows/docs.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build docs
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build-documentation:
13+
runs-on: ubuntu-20.04
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install -r docs/requirements.txt
20+
- name: Build documentation
21+
run: |
22+
cd docs
23+
make html

Diff for: .github/workflows/run-tests.yml renamed to .github/workflows/test.yml

+3-15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: run-tests
1+
name: Test
2+
23
on:
34
push:
45
branches:
@@ -12,11 +13,11 @@ env:
1213

1314
jobs:
1415
test:
15-
runs-on: ${{ matrix.os }}
1616
strategy:
1717
matrix:
1818
os: [windows-latest, ubuntu-latest, macos-latest]
1919
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
20+
runs-on: ${{ matrix.os }}
2021
steps:
2122
- uses: actions/checkout@v4
2223
- uses: astral-sh/setup-uv@v3
@@ -57,16 +58,3 @@ jobs:
5758
- uses: actions/checkout@v1
5859
- name: Run tests
5960
run: pytest-3
60-
61-
build-documentation:
62-
runs-on: ubuntu-20.04
63-
steps:
64-
- uses: actions/checkout@v3
65-
- name: Install dependencies
66-
run: |
67-
python -m pip install --upgrade pip
68-
pip install -r docs/requirements.txt
69-
- name: Build documentation
70-
run: |
71-
cd docs
72-
make html

0 commit comments

Comments
 (0)