-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (30 loc) · 1.03 KB
/
run-pytest-dev.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
39
40
41
name: Run pytests for dev
on:
pull_request:
branches: [dev]
jobs:
pytest:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.12"]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: Hack setup-python cache
if: hashFiles('**/requirements.txt', '**/pyproject.toml') == ''
run: |
touch ./requirements.txt
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip' # caching can speed up the workflow by reusing the installed dependencies
- name: Install uv
run: pip install uv
- name: Install test dependencies
run: if [ -f requirements/requirements-test.txt ]; then uv pip install -r requirements/requirements-test.txt --system; fi
- name: Install package
run: uv pip install .[ml] --system
- name: Run pytest tests
run: pytest tests -x -vv --remote-data