-
Notifications
You must be signed in to change notification settings - Fork 17
44 lines (42 loc) · 1.27 KB
/
check-tests.yml
File metadata and controls
44 lines (42 loc) · 1.27 KB
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]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
max-parallel: 2
matrix:
python-version: ["3.10", 3.11]
services:
postgres:
image: postgis/postgis:14-master
env:
POSTGRES_DB: db-concrete-datastore
POSTGRES_USER: user-concrete-datastore
POSTGRES_PASSWORD: pwd-concrete-datastore
POSTGRES_HOST: localhost
POSTGRES_PORT: 5432
ports:
- 5432:5432
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Run SMTPD server
run: |
python -m pip install --upgrade pip
python -m smtpd -n -c DebuggingServer localhost:1025 &
- name: Install dependencies
run: |
python -m pip install --upgrade pip
sudo apt-get update
sudo apt-get install binutils libproj-dev gdal-bin
pip install -e ".[tests]"
- name: Test with pytest
run: |
pytest --ds=tests.unittest_settings --pyargs -q tests --cov --cov-report html --cov-report term
- name: Tests coverage with CodeCov
run: |
codecov