Bump kdeldycke/workflows from 4.4.0 to 4.5.2 #1255
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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-22.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.4.0/requirements/uv.txt | |
- name: Install project | |
run: | | |
uv --no-progress venv --system | |
uv --no-progress pip install ".[test]" | |
- name: Install Stork | |
run: | | |
cargo install stork-search --locked | |
- name: Build website | |
run: | | |
uv --no-progress run -- pelican | |
test-redirects: | |
name: Redirect rules test in production | |
runs-on: ubuntu-22.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.4.0/requirements/uv.txt | |
- name: Install project | |
run: | | |
uv --no-progress venv --system | |
uv --no-progress pip install ".[test]" | |
- name: Unittests | |
run: | | |
uv --no-progress run -- pytest ./test_redirects.py |