Skip to content

Bump ruff from 0.7.1 to 0.7.2 #1067

Bump ruff from 0.7.1 to 0.7.2

Bump ruff from 0.7.1 to 0.7.2 #1067

Workflow file for this run

name: tests
on:
workflow_dispatch:
push:
branches:
- "*" # matches every branch that doesn't contain a '/'
- "*/*" # matches every branch containing a single '/'
- "**" # matches every branch
jobs:
run_tests:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Check out GitHub repository ${{ github.repository }}
uses: actions/checkout@v4
- name: Set up Python on ${{ runner.os }}
uses: actions/setup-python@v5
id: setup_python
with:
python-version: '3.10'
- name: Get Python version
run: echo "PYTHON_VERSION=$(python --version)" >> $GITHUB_ENV
- name: Cache Poetry dependencies
uses: actions/cache@v4
with:
path: |
~/.cache/pypoetry/cache
~/.cache/pypoetry/artifacts
key: poetry-${{ runner.os }}-${{ hashFiles('poetry.lock') }}
restore-keys: |
poetry-${{ runner.os }}-
- name: Create virtual environment on ${{ env.PYTHON_VERSION }}
run: python -m venv venv
- name: Activate virtual environment and install Poetry
run: |
source venv/bin/activate
python --version
pip install --upgrade pip
pip install poetry==1.8.4
- name: Install dependencies with Poetry
run: |
source venv/bin/activate
poetry install --with dev
- name: Tests with Pytest
run: |
source venv/bin/activate
PYTHONPATH=${PWD} poetry run coverage run -m pytest --verbose --capture=no
- name: Report coverage
run: |
source venv/bin/activate
poetry run coverage report