-
Notifications
You must be signed in to change notification settings - Fork 16
43 lines (41 loc) · 1.12 KB
/
build.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
name: build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
linux:
runs-on: "ubuntu-latest"
strategy:
matrix:
python-version: ['3.8', '3.9']
defaults:
run:
shell: bash -l {0}
name: Linux py ${{ matrix.python-version }} tests
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: delfta
environment-file: environment.yml
python-version: ${{ matrix.python-version }}
auto-activate-base: false
- run: |
conda info
pip install pytest pytest-cov
name: set pythonpath
- run: |
echo "PYTHONPATH=/home/runner/work/delfta/delfta" >> $GITHUB_ENV
name: download files
- run: |
python delfta/download.py --tests
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
name: test
- run: |
pytest --cov=delfta --cov-config=.coveragerc --cov-report=xml tests/
./codecov -t ${{ secrets.CODECOV_TOKEN }}