Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: PR Checks

on:
pull_request:
push:
branches: [master]

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
name: Ruff lint & format
runs-on: ['self-hosted','ubuntu-22.04']
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip

- name: Install Ruff
run: pip install ruff

- name: Ruff check
run: ruff check .

- name: Ruff format check
run: ruff format --check .

security:
name: Dependency audit
runs-on: ['self-hosted','ubuntu-22.04']
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip

- name: Install package + pip-audit
run: pip install -e . pip-audit

- name: Run pip-audit
run: pip-audit
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
jobs:
build:
name: Build distribution
runs-on: ubuntu-latest
runs-on: ['self-hosted','ubuntu-22.04']

steps:
- name: Check out repository
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
publish:
name: Publish to PyPI
needs: build
runs-on: ubuntu-latest
runs-on: ['self-hosted','ubuntu-22.04']

environment:
name: pypi
Expand Down
Loading