Update test file #64
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Run pre-commit in pytrajplot | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| blueprint-pre-commit: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.11.0 | |
| - uses: conda-incubator/setup-miniconda@v2 | |
| with: | |
| miniconda-version: "latest" | |
| channels: conda-forge | |
| channel-priority: flexible | |
| show-channel-urls: true | |
| - name: Create env from unpinned reqs | |
| run: | | |
| conda create --name dev_env python=3.10 mamba | |
| conda activate dev_env | |
| mamba install --file requirements/requirements.txt | |
| - name: Install project into env | |
| run: | | |
| conda run --name dev_env pip install --no-deps . | |
| - name: Install pre-commit hooks | |
| 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 |