From e8917103d123cc39c9ff94e88c003cccc1c0302d Mon Sep 17 00:00:00 2001 From: Kin Long Kelvin Lee Date: Tue, 12 Mar 2024 11:05:24 -0700 Subject: [PATCH] revamping lightning pytest Signed-off-by: Kin Long Kelvin Lee --- .github/workflows/run_pytest_lightning.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/run_pytest_lightning.yml b/.github/workflows/run_pytest_lightning.yml index 615f4c85..d88e8dad 100644 --- a/.github/workflows/run_pytest_lightning.yml +++ b/.github/workflows/run_pytest_lightning.yml @@ -3,20 +3,12 @@ on: pull_request: paths: - 'matsciml/lightning/**' + workflow_dispatch: jobs: + init: + uses: ./github/workflows/make_env.yml lightning-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 lightning submodule run: | pytest -v -m "not lmdb and not slow and not remote_request" ./matsciml/lightning