-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (30 loc) · 984 Bytes
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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/