-
Notifications
You must be signed in to change notification settings - Fork 14
61 lines (52 loc) · 1.49 KB
/
Copy pathpytest.yaml
File metadata and controls
61 lines (52 loc) · 1.49 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
name: pytest
on:
push:
branches: [ master ]
pull_request:
branches: [ "**" ]
schedule:
- cron: "0 0 * * *"
jobs:
test:
name: Test on ${{ matrix.os }} with Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.8, 3.9]
steps:
- uses: actions/checkout@v1
- name: Additional info about the build
shell: bash
run: |
uname -a
df -h
ulimit -a
# More info on options: https://github.com/marketplace/actions/setup-miniconda
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
environment-file: devtools/conda-envs/ael-test.yaml
channels: pytorch, conda-forge
activate-environment: ael-test
auto-update-conda: true
auto-activate-base: false
show-channel-urls: true
use-mamba: true
- name: Install package
# conda setup requires this special shell
shell: bash -l {0}
run: |
python -m pip install . --no-deps
conda list
- name: Run tests
# conda setup requires this special shell
shell: bash -l {0}
run: |
pytest -v --cov=ael --cov-report=xml --color=yes tests/
- name: CodeCov
uses: codecov/codecov-action@v2
with:
files: ./coverage.xml, coverage.xml
flags: unittests
name: codecov-${{ matrix.os }}-py${{ matrix.python-version }}