chore(deps-dev): bump ruff from 0.7.0 to 0.7.1 #1245
Workflow file for this run
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
--- | |
name: Linting and Static Analysis | |
"on": | |
pull_request: | |
branches: | |
- dev | |
- main | |
push: | |
branches: | |
- dev | |
- main | |
jobs: | |
lint: | |
name: "Linting & Static Analysis" | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⤵️ Check out code from GitHub | |
uses: actions/checkout@v4 | |
- name: 🏗 Set up Python 3.12 | |
id: setup-python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: ⤵️ Get pip cache directory | |
id: pip-cache | |
run: | | |
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT | |
- name: ⤵️ Establish pip cache | |
uses: actions/cache@v4 | |
with: | |
path: ${{ steps.pip-cache.outputs.dir }} | |
key: "${{ runner.os }}-pip-\ | |
${{ hashFiles('.github/workflows/requirements.txt') }}" | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: 🏗 Install workflow dependencies | |
run: | | |
pip install --upgrade pip setuptools wheel | |
pip install -r .github/workflows/requirements.txt | |
poetry config virtualenvs.create true | |
poetry config virtualenvs.in-project true | |
- name: ⤵️ Establish poetry cache | |
uses: actions/cache@v4 | |
with: | |
path: .venv | |
key: "venv-${{ steps.setup-python.outputs.python-version }}-\ | |
${{ hashFiles('poetry.lock') }}" | |
restore-keys: | | |
venv-${{ steps.setup-python.outputs.python-version }}- | |
- name: 🏗 Install package dependencies | |
run: | | |
poetry install --no-interaction | |
- name: 🚀 Run pre-commit hooks | |
uses: pre-commit/[email protected] | |
env: | |
SKIP: no-commit-to-branch,pytest |