Skip to content

Bump pytest from 9.0.2 to 9.0.3 (#54) #49

Bump pytest from 9.0.2 to 9.0.3 (#54)

Bump pytest from 9.0.2 to 9.0.3 (#54) #49

Workflow file for this run

name: Test
on: [push, pull_request, workflow_dispatch]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install ruff
- run: ruff check splitfolders/ tests/
- run: ruff format --check splitfolders/ tests/
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12", "3.13"]
extras: ["", '--extras "full"']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: Gr1N/setup-poetry@v9
- uses: actions/cache@v4
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.extras }}-poetry-${{ hashFiles('poetry.lock') }}
- name: Install dependencies with all extras combinations
run: poetry install --without dev ${{ matrix.extras }} && poetry run pip install pytest
- run: poetry run pytest