Skip to content

Commit

Permalink
Add boilerplate GitHub Actions CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwthompson committed Aug 4, 2020
1 parent c39b9c3 commit dd20bb1
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: ci

on:
push:
branches:
- "master"
- "maintenance/.+"
pull_request:
branches:
- "master"
- "maintenance/.+"
schedule:
# Run a cron job once daily
- cron: "0 0 * * *"

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macOS-latest, ubuntu-latest]
python-version: [3.6, 3.7]
env:
PYVER: ${{ matrix.python-version }}

steps:
- uses: actions/checkout@v2

- uses: goanpeca/setup-miniconda@v1
with:
python-version: ${{ matrix.python-version }}
activate-environment: test
channel-priority: true
environment-file: devtools/conda-envs/test_env.yaml
auto-activate-base: false

- name: Additional info about the build
shell: bash
run: |
uname -a
df -h
ulimit -a
- name: Environment Information
shell: bash -l {0}
run: |
conda info --all
conda list
- name: Install package
shell: bash -l {0}
run: |
python -m pip install --no-deps .
- name: Run tests
shell: bash -l {0}
run: |
PYTEST_ARGS=" -v --cov=openff/cli/ --cov-report=xml --cov-config=setup.cfg"
pytest $PYTEST_ARGS openff/cli/tests
- name: Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
fail_ci_if_error: true

0 comments on commit dd20bb1

Please sign in to comment.