-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (42 loc) · 1.12 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
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Test
on:
push:
branches:
- '**'
jobs:
test:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.12"]
fail-fast: false
steps:
# Check out
- uses: actions/checkout@v2
# Set up Python
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# Start postgresql
- run: sudo systemctl start postgresql.service
# Check sqlite version
- run: sqlite3 --version
# Install poetry
- uses: abatilo/actions-poetry@v2.3.0
# Install deps
- run: poetry install
# # Test SQLite
# - run: poetry run pytest test/sqlite
#
# # Test Postgres
# - run: poetry run pytest test/postgres
# isort
- run: poetry run isort --sp pyproject.toml --check .
# black
- run: poetry run black --config pyproject.toml --check .
# pylint
# - run: poetry run pylint p3orm/
- name: ruff
run: poetry run ruff p3orm/
# check versions match
- run: poetry run python scripts/assert_package_versions_match.py