-
Notifications
You must be signed in to change notification settings - Fork 7
66 lines (54 loc) · 1.36 KB
/
ci.yaml
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
name: CI
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
schedule:
- cron: "0 0 * * *"
defaults:
run:
shell: bash -leo pipefail {0} {0}
jobs:
test:
name: Test on ${{ matrix.os }}, Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-12
- ubuntu-latest
python-version:
- "3.10"
- "3.11"
steps:
- uses: actions/checkout@v4
- name: Install Conda Environment
uses: mamba-org/setup-micromamba@v2
with:
environment-file: devtools/conda-envs/test_env.yaml
create-args: >-
python=${{ matrix.python-version }}
- name: Install Package
run: python -m pip install -e .
- name: Run Tests
run: |
pytest -v -n logical smirnoff_plugins/_tests/ \
--cov=smirnoff_plugins --cov-report=xml \
--color=yes
- name: Run Example
if: ${{ false }}
run: python examples/buckingham-water.py
- name: Run mypy
continue-on-error: true
run: mypy smirnoff_plugins/
- name: CodeCov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests
name: codecov-${{ matrix.os }}-py${{ matrix.python-version }}