@@ -41,40 +41,40 @@ jobs:
4141 ports :
4242 - 5432:5432
4343 steps :
44- - name : Install OS Packages
45- run : |
46- sudo apt-get update
47- sudo apt-get install binutils libproj-dev gdal-bin libmemcached-dev libsqlite3-mod-spatialite
48- - uses : actions/checkout@v4
49- with :
50- fetch-depth : 0
51- - name : Set up Python ${{ matrix.python-version }}
52- uses : actions/setup-python@v5
53- with :
54- python-version : ${{ matrix.python-version }}
55- - name : Install dependencies
56- run : |
57- pip install -U "pip>=23.1.1"
58- pip install -U "tox-gh-actions==3.3.0" coverage
59- - name : Log versions
60- run : |
61- python --version
62- pip --version
63- psql -V
64- mysql -V
65- - name : prep DB
66- env :
67- MYSQL_TCP_PORT : 3306
68- MYSQL_HOST : localhost
69- PGHOST : localhost
70- PGPORT : 5432
71- run : |
72- psql -U postgres -c 'CREATE DATABASE postgis'
73- psql -U postgres postgis -c 'CREATE EXTENSION IF NOT EXISTS postgis;'
74- mysql --protocol=TCP --user=root -e 'create database django_prometheus_1;'
75- - name : Run test and linters via Tox
76- run : tox
77- - name : Process code coverage
78- run : |
79- coverage combine .coverage django_prometheus/tests/end2end/.coverage
80- coverage xml
44+ - name : Install OS Packages
45+ run : |
46+ sudo apt-get update
47+ sudo apt-get install binutils libproj-dev gdal-bin libmemcached-dev libsqlite3-mod-spatialite
48+ - uses : actions/checkout@v4
49+ with :
50+ fetch-depth : 0
51+ - name : Set up Python ${{ matrix.python-version }}
52+ uses : actions/setup-python@v5
53+ with :
54+ python-version : ${{ matrix.python-version }}
55+ - name : Install dependencies
56+ run : |
57+ pip install -U "pip>=23.1.1"
58+ pip install -U "tox-gh-actions==3.3.0" coverage
59+ - name : Log versions
60+ run : |
61+ python --version
62+ pip --version
63+ psql -V
64+ mysql -V
65+ - name : prep DB
66+ env :
67+ MYSQL_TCP_PORT : 3306
68+ MYSQL_HOST : localhost
69+ PGHOST : localhost
70+ PGPORT : 5432
71+ run : |
72+ psql -U postgres -c 'CREATE DATABASE postgis'
73+ psql -U postgres postgis -c 'CREATE EXTENSION IF NOT EXISTS postgis;'
74+ mysql --protocol=TCP --user=root -e 'create database django_prometheus_1;'
75+ - name : Run test and linters via Tox
76+ run : tox
77+ - name : Process code coverage
78+ run : |
79+ coverage combine .coverage django_prometheus/tests/end2end/.coverage
80+ coverage xml
0 commit comments