-
Notifications
You must be signed in to change notification settings - Fork 7
84 lines (71 loc) · 2.26 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: test
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "0 0 * * *"
jobs:
test:
if: github.event.pull_request.draft == false
name: forcefield utilities Tests on ${{ matrix.os }} with Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macOS-latest, ubuntu-latest ]
python-version: ["3.9", "3.10", "3.11"]
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
name: Checkout Branch
- name: Install Mamba
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: environment-dev.yml
extra-specs: |
python=${{ matrix.python-version }}
- name: Install Package
run: python -m pip install -e .
- name: Run Tests (OS -> ${{ matrix.os }} / Python -> ${{ matrix.python-version }})
run: |
python -m pytest -v --color yes forcefield_utilities/tests --cov
coverage xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
bleeding-edge-test:
if: github.event.pull_request.draft == false
name: Bleeding Edge mosdef Tests for ffutils
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
name: Checkout Branch / Pull Request
- name: Install Mamba
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: environment-dev.yml
extra-specs: |
python=3.8
- name: Clone GMSO
run: |
git clone https://github.com/mosdef-hub/gmso.git
git clone https://github.com/mosdef-hub/foyer.git
- name: Update Environment with mbuild/foyer/ffutils Dependencies
run: |
micromamba update --name forcefields-dev --file gmso/environment.yml
micromamba update --name forcefields-dev --file foyer/environment.yml
- name: Install Packages from Source
run: |
pip install -e gmso
pip install -e foyer
pip install -e .
- name: Run Bleeding Edge Tests
run: |
python -m pytest -v --color yes --pyargs forcefield_utilities