Skip to content

Commit

Permalink
Mimic gmso ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
daico007 committed Oct 2, 2023
1 parent cf6e429 commit 4f5881c
Showing 1 changed file with 19 additions and 26 deletions.
45 changes: 19 additions & 26 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,46 +17,39 @@ jobs:
test:
if: github.event.pull_request.draft == false
name: Unit-Test (${{ matrix.os }}, Python ${{ matrix.python-version }})
runs-on: ${{ matrix.os }}-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macOs-latest"]
python-version: ["3.9", "3.10"]
os: ["ubuntu", "macos"]
include:
- os: ubuntu
environment-file: environment.yml
miniforge-variant: Mambaforge
miniforge-version: 4.9.2-4
- os: macos
environment-file: environment.yml
miniforge-variant: Mambaforge-pypy3

defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
- name: Checkout Branch / Pull Request
uses: actions/checkout@v3

- name: Install Mamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ${{ matrix.environment-file }}
miniforge-variant: ${{ matrix.miniforge-variant }}
miniforge-version: ${{ matrix.miniforge-version }}
python-version: ${{ matrix.python-version }}
use-mamba: true
create-args: >-
python=${{ matrix.python-version }}
- shell: bash -l {0}
run: |
pip install .
- name: Install Package
run: python -m pip install -e .

- shell: bash -l {0}
run: |
python -m pytest -v --color yes mosdef_gomc/tests --cov
coverage xml
echo "tests finished"
- name: Test (OS -> ${{ matrix.os }} / Python -> ${{ matrix.python-version }})
run: python -m pytest -v --cov=mosdef_dihedral_fit --cov-append --cov-config=setup.cfg --color yes --pyargs mosdef_dihedral_fit

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
- name: Upload Converage Report
uses: codecov/codecov-action@v2
with:
name: mosdef_dihedral_fit-Coverage
verbose: true

docker:
runs-on: 'ubuntu-latest'
Expand Down

0 comments on commit 4f5881c

Please sign in to comment.