-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 855 Bytes
/
test.yml
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
name: Test
on: push
jobs:
test:
runs-on: ubuntu-latest
concurrency: overcast
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- uses: astral-sh/setup-uv@v1
- name: Install dependencies
run: |
uv pip install --system --requirement requirements.txt
- name: Load cache
uses: actions/cache@v4
with:
path: .cache/
key: cache-${{ github.run_id }}
restore-keys: |
cache-
- name: Test with pytest
run: |
pytest --log-cli-level info --verbose
env:
XDG_CACHE_HOME: .cache/
OVERCAST_COOKIE: ${{ secrets.OVERCAST_COOKIE }}
ENCRYPTION_KEY: ${{ secrets.ENCRYPTION_KEY }}