-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.17 KB
/
test.yml
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
33
34
35
36
37
38
39
40
41
42
43
44
name: Tests
on:
push:
branches:
- "*"
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install Poetry
run: pip install poetry
shell: bash
- name: Use in-project virtualenv
run: poetry config virtualenvs.in-project true
shell: bash
- uses: actions/cache@v3
with:
path: .venv/
key: ${{ runner.os }}-${{ matrix.python }}-pip-${{ hashFiles('poetry.lock') }}-${{ hashFiles('pyproject.toml') }}
- name: Install dependencies
run: poetry install
shell: bash
- name: Use the dev configuration
run: cp kmicms/kmicms/configuration.dev.py kmicms/kmicms/configuration.py
- name: Check Formatting
run: make format-check
- name: Lint
run: make lint
- name: Django Static Checks
run: make check
- name: Unit tests
run: make test