-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (28 loc) · 785 Bytes
/
test.yml
File metadata and controls
31 lines (28 loc) · 785 Bytes
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
name: Run tests
on: push
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v6
# https://github.com/actions/setup-python
- name: Install Python
uses: actions/setup-python@v6
with:
python-version: "3.14"
cache: pip
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run tests
# https://pytest-cov.readthedocs.io/en/latest/readme.html
run: pytest --cov
# https://github.com/astral-sh/ruff-action
- name: Set up ruff
uses: astral-sh/ruff-action@v3
with:
version: latest
- name: Lint
run: ruff check
- name: Check formatting
run: ruff format --check