diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pytest.yml similarity index 53% rename from .github/workflows/pre-commit.yml rename to .github/workflows/pytest.yml index 6be1eee..314a5ae 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pytest.yml @@ -1,4 +1,4 @@ -name: Run pre-commit in pytrajplot +name: Run pytest in pytrajplot on: push: @@ -9,7 +9,7 @@ on: - main jobs: - blueprint-pre-commit: + blueprint-pytest: runs-on: ubuntu-latest defaults: run: @@ -26,17 +26,13 @@ jobs: channels: conda-forge channel-priority: flexible show-channel-urls: true - - name: Create env from unpinned reqs + - name: Create env from pinned reqs run: | - conda create --name dev_env python=3.10 mamba - conda activate dev_env - mamba install --file requirements/requirements.txt + conda activate + conda env create --name pytrajplot --file requirements/environment.yml - name: Install project into env run: | - conda run --name dev_env pip install --no-deps . - - name: Install pre-commit hooks + conda run --name pytrajplot pip install --no-deps . + - name: Run pytest run: | - conda run --name dev_env pre-commit install-hooks - - name: Run pre-commit hooks - run: | - conda run --name dev_env pre-commit run --all-files + conda run --name pytrajplot pytest tests