Debian Codegraph @

.github/workflows/testing.yml

raw symbols SCIP
1 name: Testing
2
3 on:
4 push:
5 branches:
6 - master
7 pull_request:
8
9 jobs:
10
11 pytest:
12 runs-on: ${{ matrix.os }}
13
14 strategy:
15 fail-fast: false
16 matrix:
17 os: [ubuntu-latest, windows-latest]
18 python-version: [3.8]
19 torch-version: [2.0.0, 2.1.0]
20
21 steps:
22 - uses: actions/checkout@v2
23 - name: Set up Python ${{ matrix.python-version }}
24 uses: actions/setup-python@v2
25 with:
26 python-version: ${{ matrix.python-version }}
27
28 - name: Install PyTorch ${{ matrix.torch-version }}
29 run: |
30 pip install torch==${{ matrix.torch-version }} --extra-index-url https://download.pytorch.org/whl/cpu
31
32 - name: Install main package
33 run: |
34 pip install scipy==1.10.1 # Python 3.8 support
35 python setup.py develop
36
37 - name: Run test-suite
38 run: |
39 pip install pytest pytest-cov
40 pytest --cov --cov-report=xml
41
42 - name: Upload coverage
43 uses: codecov/codecov-action@v1
44 if: success()
45 with:
46 fail_ci_if_error: false