Skip to content

Merge pull request #6 from alex-t-grecu/main #9

Merge pull request #6 from alex-t-grecu/main

Merge pull request #6 from alex-t-grecu/main #9

Workflow file for this run

name: Pre-commit
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9.18
uses: actions/setup-python@v3
with:
python-version: '3.9.18'
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
conda env update --file environment.yml --name nightly-checker-env
- name: Run pre-commit
run: conda run -n nightly-checker-env pre-commit run --all-files