-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (46 loc) · 1.21 KB
/
pytest-minimal.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
name: Test minimal
on:
push:
branches: [master]
pull_request:
branches: ['*']
jobs:
build:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Conda Environment
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
miniforge-version: latest
condarc-file: ci/condarc
use-mamba: true
python-version: 3.8
environment-file: ci/requirements-minimal.yml
activate-environment: TEMPLATE-minimal
- name: Show conda options
shell: bash -l {0}
run: conda config --show
- name: conda info
shell: bash -l {0}
run: conda info
- name: conda list
shell: bash -l {0}
run: conda list
- name: Install
shell: bash -l {0}
run: python -m pip install --no-deps -e .
- name: pytest
shell: bash -l {0}
run: |
coverage run -m pytest -v
coverage xml
- name: codecov.io
uses: codecov/codecov-action@v1