-
Notifications
You must be signed in to change notification settings - Fork 15
48 lines (42 loc) · 1.29 KB
/
testing.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
name: Testing
on: [push, pull_request]
jobs:
test:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: latest supported versions
os: ubuntu-latest
python-version: '3.10'
toxenv: py310-test-all-latest-cov
- name: oldest supported versions
os: ubuntu-latest
python-version: '3.8'
toxenv: py38-test-oldest
- name: macOS 11
os: macos-11
python-version: '3.10'
toxenv: py310-test-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Conda w/ Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
with:
auto-activate-base: false
python-version: ${{ matrix.python-version }}
channels: conda-forge
- name: Install Dependencies
shell: bash -el {0}
run: |
pip install tox-conda
- name: Run Tests
shell: bash -el {0}
run: |
tox -e ${{ matrix.toxenv }} ${{ matrix.toxargs }} -- ${{ matrix.toxposargs }}
- if: contains(matrix.toxenv, '-cov')
name: Report Coverage
uses: codecov/codecov-action@v3