Skip to content

Migrate from setup.py to poetry/pyproject.toml #92

Migrate from setup.py to poetry/pyproject.toml

Migrate from setup.py to poetry/pyproject.toml #92

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
max-parallel: 3
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
steps:
- name: checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt install pipx
pipx ensurepath
pipx install poetry
- name: Install warcio
run: poetry install
- name: Output warcio version
run: |
poetry run warcio --version
- name: Run tests
run: poetry run pytest
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4