Skip to content

Bump the pip-dependencies group across 1 directory with 4 updates (#156) #673

Bump the pip-dependencies group across 1 directory with 4 updates (#156)

Bump the pip-dependencies group across 1 directory with 4 updates (#156) #673

Workflow file for this run

name: Python package
on:
pull_request:
push:
branches:
- main
tags:
- "[0-9]+.[0-9]+.[0-9]+*"
- "v[0-9]+.[0-9]+.[0-9]+*"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
python-version: [ "3.12.1" ]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: abatilo/actions-poetry@v3.0.1
with:
poetry-version: 1.7.1
- name: Cache Poetry
uses: actions/cache@v4
with:
path: |
~/.local
~/.cache/pypoetry
key: poetry-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: Create virtual environment with poetry
run:
poetry install
- name: Run ruff
if : ${{ matrix.os == 'ubuntu-latest' }}
run: |
poetry run ruff check --exit-non-zero-on-fix
poetry run ruff format --check
- name: Test with pytest
run: |
poetry run pytest -n auto --dist=loadfile --durations=10