Skip to content

Commit

Permalink
Streamline testing of beta/RC upstreams
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwthompson committed May 29, 2024
1 parent ee45768 commit ddca60a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 66 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/beta_rc.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Weekly test against upstream beta and RC builds
name: Tests against beta/RC builds

on:
schedule:
- cron: "0 0 * * 0"
- cron: "0 3 * * 0"
workflow_dispatch:

defaults:
Expand All @@ -11,7 +11,7 @@ defaults:

jobs:
test:
name: Test beta and RC builds on on ${{ matrix.python-version }}
name: Test beta/RC builds on ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -25,7 +25,6 @@ jobs:
env:
OE_LICENSE: ${{ github.workspace }}/oe_license.txt
PYTEST_ARGS: -r fE --tb=short -nauto
COV: --cov=openff/toolkit --cov-config=setup.cfg --cov-append --cov-report=xml

steps:
- uses: actions/checkout@v4
Expand All @@ -35,7 +34,14 @@ jobs:
- name: Install environment with ${{ env.JOBNAME }}
uses: mamba-org/setup-micromamba@v1
with:
environment-file: devtools/conda-envs/beta_rc_env.yaml
environment-file: devtools/conda-envs/test_env.yaml
condarc: |
channels:
- conda-forge/label/openmm_rc
- conda-forge/label/mdtraj_rc
- openeye/label/rc
- openeye
- conda-forge
create-args: >-
python=${{ matrix.python-version }}
Expand Down Expand Up @@ -67,15 +73,8 @@ jobs:
PYTEST_ARGS+=" --ignore=openff/toolkit/_tests/test_examples.py"
PYTEST_ARGS+=" --ignore=openff/toolkit/_tests/test_links.py"
PYTEST_ARGS+=" --runslow"
pytest $PYTEST_ARGS $COV
pytest $PYTEST_ARGS
- name: Run code snippets in docs
run: |
pytest -v --doctest-glob="docs/*.rst" --doctest-glob="docs/*.md" docs/
- name: Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
fail_ci_if_error: true
53 changes: 0 additions & 53 deletions devtools/conda-envs/beta_rc_env.yaml

This file was deleted.

0 comments on commit ddca60a

Please sign in to comment.