-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (48 loc) · 1.36 KB
/
ci.yml
File metadata and controls
56 lines (48 loc) · 1.36 KB
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
name: Main CI
on:
pull_request:
push:
branches: [main]
workflow_call:
jobs:
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 20
environment: dev
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
defaults:
run:
shell: bash -el {0}
env:
CACHE_NUMBER: 0
steps:
- name: Checkout git repo
uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v4
with:
path: |
~/.cache/uv
~/.cache/pip
key: uv-${{ matrix.python-version }}-${{ hashFiles('requirements/requirements*.txt') }}-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('MANIFEST.in') }}-${{ env.CACHE_NUMBER }}
restore-keys: |
uv-${{ matrix.python-version }}-
- name: Install base dependencies
run: |
which python
pip install uv
uv pip install --system -e '.[test,all]'
- name: Quality Check
uses: pre-commit/action@v3.0.1
continue-on-error: true
- name: Run all tests
run: |
# Install all extras and run complete test suite
uv pip install --system -e '.[all]'
pytest tests/common/test_dependencies.py -v
make test