Skip to content

Update all non-CD actions to run against main branch #100

Update all non-CD actions to run against main branch

Update all non-CD actions to run against main branch #100

name: Pre-commit test
on:
push:
branches: [ main ]
paths:
- '.pre-commit-config.yaml'
- '.github/workflows/pre-commit-test.yml'
- 'Makefile'
pull_request:
branches: [ main ]
paths:
- '.pre-commit-config.yaml'
- '.github/workflows/pre-commit-test.yml'
- 'Makefile'
jobs:
pre-commit-test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
# with:
# fetch-depth: "0"
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: "pip"
cache-dependency-path: |
**/requirements*.txt
pyproject.toml
- name: Install dependencies
run: make dev-env
- name: Test pre-commit
run: make pre-commit-all