-
-
Notifications
You must be signed in to change notification settings - Fork 73
47 lines (43 loc) · 1.06 KB
/
tests.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
name: Tests
on:
push:
branches:
- "**"
tags-ignore:
- "**"
pull_request:
jobs:
Linux:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.12']
services:
postgres:
image: postgis/postgis:12-3.2
env:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: test
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install and configure Poetry
uses: gi0baro/[email protected]
with:
virtualenvs-in-project: true
- name: Upgrade virtuqlenv # due to https://github.com/pypa/pip/issues/11501
run: echo "$(pip freeze)"
if: ${{ matrix.python-version == '3.12' }}
- name: Install dependencies
run: |
poetry install -v
- name: Test
env:
POSTGRES_URI: postgres:postgres@localhost:5432/test
run: |
poetry run pytest -v tests