Files
023-turtle-crossing/.gitea/workflows/ci.yml
T
Tirsvad abc20f477a Scaffold the project: pyproject, gitignore, constants, Doxyfile, README, CI
Task: MIL-002#1
Task: MIL-002#2
Task: MIL-002#3
Task: MIL-002#4
Task: MIL-002#5
2026-10-13 13:56:00 +08:00

27 lines
692 B
YAML

# Run the tests on every push and pull request.
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install a virtual display and Tk
run: sudo apt-get update && sudo apt-get install -y xvfb python3-tk
- name: Install the development dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --group dev
- name: Run the tests
run: xvfb-run python -m pytest