-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (38 loc) · 1.16 KB
/
testing.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
42
43
44
45
46
47
48
name: Testing PyTorch 2.3
on: # yamllint disable-line rule:truthy
push:
branches:
- master
pull_request:
jobs:
pytest:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.8]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python ${{ inputs.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python-version }}
- name: Install PyTorch
run: |
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install torch==2.3.0 --extra-index-url https://download.pytorch.org/whl/cpu
python3 -m pip install --no-index pyg-lib==0.4.0 -f https://data.pyg.org/whl/torch-2.3.0+cpu.html
- name: Install main package
run: |
source .venv/bin/activate
pip install -e .[full,test]
- name: Run tests
run: |
source .venv/bin/activate
pytest --cov --cov-report=xml
- name: Upload coverage
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: false