-
Notifications
You must be signed in to change notification settings - Fork 11
35 lines (29 loc) · 864 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
name: Tests
on:
push:
paths: ["**/*.py", .github/workflows/test.yml]
branches: [main]
pull_request:
paths: ["**/*.py", .github/workflows/test.yml]
branches: [main]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
cache: pip
cache-dependency-path: pyproject.toml
- name: Install uv
run: pip install uv
- name: Install dependencies
run: |
pip install torch==2.2.1 --index-url https://download.pytorch.org/whl/cpu
pip install torch-scatter -f https://data.pyg.org/whl/torch-2.2.1+cpu.html
uv pip install .[test] --system
- name: Run Tests
run: pytest --capture=no --cov .