Skip to content

Commit

Permalink
update gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Sep 23, 2024
1 parent 3e0ae8b commit c0fa832
Showing 1 changed file with 11 additions and 22 deletions.
33 changes: 11 additions & 22 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,19 @@ on:
pull_request:

jobs:
cqa:
lint:
name: lint
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: pip
cache-dependency-path: '**/setup.cfg'

- name: Install test dependencies
run: |
python -m pip install --upgrade pip
pip install --use-deprecated=legacy-resolver -e .[dev]
- name: Lint with Ruff
run: python3 -m ruff check src/
- uses: actions/checkout@v4

- name: Format check with black
run: black --check src
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Security check with bandit
run: bandit -ll -r src
- name: Install dependencies
run: python3 -m pip install ".[dev]"

- name: Check style
run: python3 -m ruff check . && python3 -m ruff format --check .

0 comments on commit c0fa832

Please sign in to comment.