Skip to content

Oclc-numbers

Oclc-numbers #70

Workflow file for this run

name: tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
name: Python ${{ matrix.python-version}}
steps:
- uses: actions/checkout@v4
- name: Bootstrap Poetry
run: pipx install poetry==1.8.2
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version}}
cache: poetry
- name: Configure Poetry
run: |
poetry config virtualenvs.in-project true
poetry config virtualenvs.options.no-pip true
poetry config virtualenvs.options.no-setuptools true
- name: Check lock file
run: poetry check --lock
- name: Install dependencies
run: poetry install
- name: Run tests
run: poetry run pytest -v --cov=bookops_marc/
- name: Send report to Coveralls
uses: AndreMiras/coveralls-python-action@develop
with:
parallel: true
flag-name: Unit Test
github-token: ${{ secrets.GITHUB_TOKEN}}
coveralls_finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls finished
uses: AndreMiras/coveralls-python-action@develop
with:
parallel-finished: true