Skip to content

Update gh actions

Update gh actions #18

Workflow file for this run

name: repo_lint
on:
pull_request:
branches:
- main
env:
PY_COLORS: "1"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
id: setup-python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python3 -m venv .venv
source .venv/bin/activate
.venv/bin/pip install -r requirements-dev.txt
- name: Run lint
run: |
source .venv/bin/activate
pre-commit run -a || { git diff; false; }