Skip to content

Create a scripted demo environment that works around the operator while it's broken. #118

Create a scripted demo environment that works around the operator while it's broken.

Create a scripted demo environment that works around the operator while it's broken. #118

name: Pre-commit test
permissions:
contents: read
on:
workflow_dispatch:
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'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pre-commit-test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
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