Selective PyTest workflow on Github actions #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run model and task related PyTests | |
on: | |
pull_request: | |
paths: | |
- 'matsciml/models/**' | |
jobs: | |
models-pytest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Create micromamba env | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
micromamba-version: '1.5.7-0' | |
environment-file: conda.yml | |
init-shell: >- | |
bash | |
cache-environment: true | |
post-cleanup: 'all' | |
- name: Run pytest in models | |
run: | | |
pytest -v -m "not lmdb and not slow and not remote_request" ./matsciml/models |