From e6f892b5ea023a1f8e82fe8108e53638822a13db Mon Sep 17 00:00:00 2001 From: Kin Long Kelvin Lee Date: Tue, 12 Mar 2024 10:06:08 -0700 Subject: [PATCH] ci: adding mamba based pytest ci action Signed-off-by: Kin Long Kelvin Lee --- .github/workflows/run_pytest_datasets.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/run_pytest_datasets.yml diff --git a/.github/workflows/run_pytest_datasets.yml b/.github/workflows/run_pytest_datasets.yml new file mode 100644 index 00000000..28f47030 --- /dev/null +++ b/.github/workflows/run_pytest_datasets.yml @@ -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/