Skip to content

Selective PyTest workflow on Github actions #1

Selective PyTest workflow on Github actions

Selective PyTest workflow on Github actions #1

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/