Skip to content

workflow

workflow #92

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@v2
- name: install git
run: apt-get update && apt-get install -y git
- 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: ~/.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@v2
- name: make venv
run: python -m venv ~/.venv && ~/.venv/bin/pip install -r requirements.txt
- name: run tests
run: ~/.venv/bin/pytest --cov=ragdoll --cov-report term-missing tests/