-
Notifications
You must be signed in to change notification settings - Fork 17
56 lines (45 loc) · 1.2 KB
/
workflow.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: workflow
on:
push:
branches:
- master
pull_request:
schedule:
- cron: '0 0 * * 1' # run every Monday
workflow_dispatch:
env:
PYTEST_ADDOPTS: "--color=yes"
jobs:
workflow:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-13, windows-latest]
python-version: ["3.8", "3.10"]
defaults:
run:
shell: bash -l {0}
steps:
- name: Initialisation
uses: actions/checkout@v4
- name: Set up conda
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
auto-update-conda: true
activate-environment: conda-environment
environment-file: .github/environment.yml
- name: Install package
run: python -m pip install .[dev]
- name: Unit tests
run: invoke test.unittest
- name: Unit tests with coverage
run: invoke test.coverage
if: matrix.os == 'ubuntu-latest'
- name: Documentation tests
run: invoke test.docs
- name: Jupyter notebook tests
run: invoke test.ipynb
- name: Upload coverage to Codecov.io
uses: codecov/codecov-action@v1
if: matrix.os == 'ubuntu-latest'