Selective PyTest workflow on Github actions #7
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/**' | |
workflow_dispatch: | |
jobs: | |
init: | |
uses: ./.github/workflows/make_env.yml | |
models-pytest: | |
runs-on: ubuntu-latest | |
needs: init | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install PyTest | |
run: | | |
pip install pytest pytest-dependency | |
- name: Run pytest in models | |
run: | | |
pytest -v -m "not lmdb and not slow and not remote_request" ./matsciml/models |