-
Notifications
You must be signed in to change notification settings - Fork 48
73 lines (61 loc) · 1.74 KB
/
test.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
68
69
70
71
72
73
name: test
on:
push:
branches: ["main"]
tags: ["*"]
pull_request:
branches:
- "*"
- "!gh-pages"
schedule:
- cron: "0 4 * * MON"
jobs:
test:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10"]
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
rdkit-version: ["2022.09", "2023.03"]
# just enable python 3.11 on ubuntu to not blow up the CI time.
include:
- os: ubuntu-latest
python-version: "3.11"
rdkit-version: "2023.03"
runs-on: ${{ matrix.os }}
timeout-minutes: 30
defaults:
run:
shell: bash -l {0}
name: |
os=${{ matrix.os }}
- python=${{ matrix.python-version }}
- rdkit=${{ matrix.rdkit-version }}
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Setup mamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: env.yml
environment-name: my_env
cache-environment: true
cache-downloads: true
create-args: >-
python=${{ matrix.python-version }}
rdkit=${{ matrix.rdkit-version }}
- name: Install library
run: python -m pip install --no-deps -e . # `-e` required for correct `coverage` run.
- name: Run tests
run: pytest
- name: Codecov Upload
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false
verbose: false
env_vars: ${{ matrix.os }},${{ matrix.python-version }},${{ matrix.rdkit-version }}
- name: Test building the doc
run: mkdocs build