-
Notifications
You must be signed in to change notification settings - Fork 12
41 lines (37 loc) · 875 Bytes
/
ci.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
name: CI
on:
workflow_dispatch:
pull_request:
branches:
- master
env:
PY_COLORS: 1
jobs:
linters:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.11'
- name: Install dependencies
run: pip install .[dev]
- name: Run linter
run: pre-commit run --all-files
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.11'
- name: prepare env
run: cp example_env_file .env
- name: Set up test databases
run: docker compose up -d
- name: install dependencies
run: pip install .[tests]
- name: run tests
run: tox