-
-
Notifications
You must be signed in to change notification settings - Fork 16
57 lines (54 loc) · 1.59 KB
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
name: Test
"on":
push:
pull_request:
schedule:
# Run tests every Monday at 9:17 to catch regressions.
- cron: "17 9 * * 1"
jobs:
test-generation:
name: Generate the static site
runs-on: ubuntu-24.04
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-version: "3.12"
- name: Update apt
run: |
sudo apt --quiet --yes update
- name: Update node and npm
run: |
sudo apt --quiet --yes install npm
- name: Install uv
run: |
python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.5.4/requirements/uv.txt
- name: Install project
run: |
uv --no-progress venv
uv --no-progress sync --all-extras --dev
- name: Install Stork
run: |
cargo install stork-search --locked
- name: Build website
run: |
uv --no-progress run --frozen -- pelican
test-redirects:
name: Redirect rules test in production
runs-on: ubuntu-24.04
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-version: "3.12"
- name: Install uv
run: |
python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.5.4/requirements/uv.txt
- name: Install project
run: |
uv --no-progress venv
uv --no-progress sync --all-extras --dev
- name: Unittests
run: |
uv --no-progress run --frozen -- pytest ./test_redirects.py