-
Notifications
You must be signed in to change notification settings - Fork 13
67 lines (59 loc) · 1.91 KB
/
unittests.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Unit Tests
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
unittests:
name: CI (${{ matrix.os }}-${{ matrix.environment-file }})
env:
INSTALL: pip install -e .
RUN_TEST: pytest -v -n auto access --cov access --cov-report xml --color yes --cov-append --cov-report term-missing
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
timeout-minutes: 90
strategy:
matrix:
os: [ubuntu-latest]
environment-file: [.ci/37.yml, .ci/38.yml, .ci/39.yml, .ci/310.yml]
experimental: [false]
include:
- environment-file: .ci/310.yml
experimental: false
os: macos-latest
- environment-file: .ci/310.yml
os: windows-latest
experimental: false
steps:
- name: checkout repo
uses: actions/checkout@v2
- name: setup micromamba
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: ${{ matrix.environment-file }}
micromamba-version: 'latest'
- name: reinstall access - bash
shell: bash -l {0}
run: ${{ env.INSTALL }}
if: matrix.os != 'windows-latest'
- name: reinstall access - powershell
shell: powershell
run: ${{ env.INSTALL }}
if: matrix.os == 'windows-latest'
- name: run pytest - bash
shell: bash -l {0}
run: ${{ env.RUN_TEST }}
if: matrix.os != 'windows-latest'
- name: run pytest - powershell
shell: powershell
run: ${{ env.RUN_TEST }}
if: matrix.os == 'windows-latest'
- name: codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
name: access-codecov