-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.14 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
name: Linux
# Run on PR requests. And on master itself.
on:
push:
branches:
- master
pull_request:
jobs:
TestLinux:
name: Linux, Python ${{ matrix.python }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
# 2019
- python: 3.8
pins: ""
# 2021
- python: 3.9
pins: ""
# 2022
- python: "3.10"
pins: "sqlalchemy==1.4.*"
# current
- python: "3.11"
pins: ""
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install sqlite3 and spatialite
run: |
sudo apt-get install --yes --no-install-recommends sqlite3 libsqlite3-mod-spatialite
- name: Install python dependencies
run: |
pip install --disable-pip-version-check --upgrade pip setuptools
pip install -e .[test] ${{ matrix.pins }}
pip list
- name: Run tests
run: pytest --cov hydxlib