-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (42 loc) · 1.08 KB
/
tests.yaml
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
name: tests
on:
pull_request:
push:
branches: [main]
jobs:
pytest:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.9"]
os: [ubuntu-latest]
platform: [x64]
steps:
- uses: actions/checkout@v2
- name: Setup conda
uses: s-weigand/setup-conda@v1
with:
activate-conda: false
conda-channels: conda-forge
python-version: ${{ matrix.python-version }}
- name: Create conda environment
run: |
conda env create --file ci/environment.yaml
source activate test
pip install -v -e . --no-deps
- name: Environment information
run: |
source activate test
conda info --all
conda list
- name: Run tests
run: |
source activate test
pytest -vv --cov=xpartition --cov-report=xml
- name: Upload code coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
flags: unittests,${{ matrix.python-version }}
name: codecov-umbrella
fail_ci_if_error: false