Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 8 additions & 12 deletions .github/workflows/pre-commit.yml → .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run pre-commit in pytrajplot
name: Run pytest in pytrajplot

on:
push:
Expand All @@ -9,7 +9,7 @@ on:
- main

jobs:
blueprint-pre-commit:
blueprint-pytest:
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -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
Loading