Skip to content

fixes to pass ruff checks #1714

fixes to pass ruff checks

fixes to pass ruff checks #1714

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Install Rye
uses: sbarrios93/[email protected]
- name: Set up Python ${{ matrix.python-version }}
run: rye pin ${{ matrix.python-version }}
- name: Set up cache
uses: actions/[email protected]
id: venv-cache
with:
path: .venv
key:
venv-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}-${{
hashFiles('requirements.lock') }}-${{ hashFiles('requirements-dev.lock') }}-
- name: Install dependencies
run: |
rye sync
- name: pre-commit
run: |
rye run pre-commit run --all-files --show-diff-on-failure --color always
- name: Run tests
run: |
make test
- name: Run safety checks
run: |
make check-safety