Automatic developer environment creation #7
This file contains 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
# Linting and format-checking workflow for the repository. | |
# | |
# Behavior in this file, other than setup, is controlled in the file | |
# .pre-commit-config.yaml in the top directory of the repository. | |
# | |
# Any automations should be added to that file. This check runs over the entire | |
# repository, not just changes. | |
name: Lint repository | |
on: | |
pull_request: | |
push: | |
workflow_dispatch: | |
schedule: | |
# Run every Sunday at 03:53 UTC | |
- cron: 53 3 * * 0 | |
jobs: | |
lint: | |
runs-on: "${{ matrix.os }}" | |
strategy: | |
matrix: | |
python-version: ["3.12"] | |
os: | |
- ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install packages | |
shell: bash -l {0} | |
run: python -m pip install nox | |
- name: Run pre-commit via nox | |
shell: bash -l {0} | |
run: | | |
nox -s lint |