Skip to content

CI

CI #1370

Workflow file for this run

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 }}