Skip to content

workflow

workflow #96

Workflow file for this run

on: push
jobs:
checks:
runs-on: ubuntu-latest
container:
image: python:3.11-bookworm
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: virtualenv for pre-commit
run: python -m venv ~/.pre-commit && ~/.pre-commit/bin/pip install --upgrade pip pre-commit
- name: run pre-commit
run: pwd && ls -al && ~/.pre-commit/bin/pre-commit run --all
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
container:
image: python:${{ matrix.python }}
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: make venv
run: python -m venv ~/.venv && ~/.venv/bin/pip install -r requirements.txt
- name: run tests
run: ~/.venv/bin/python -m pytest --cov=ragdoll --cov-report term-missing tests/