forked from IntelLabs/matsciml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: adding mamba based pytest ci action
Signed-off-by: Kin Long Kelvin Lee <[email protected]>
- Loading branch information
1 parent
1b9b882
commit e6f892b
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Run data related PyTests | ||
on: | ||
pull_request: | ||
paths: | ||
- 'matsciml/datasets/**' | ||
- 'matsciml/lightning/data_utils.py' | ||
jobs: | ||
dataset-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 data | ||
run: | | ||
pytest -v -m "not lmdb and not slow and not remote_request" ./matsciml/datasets ./matsciml/lightning/ |