Skip to content

Commit

Permalink
Merge pull request #154 from Souleymane-T/feature-update-tests-workflow
Browse files Browse the repository at this point in the history
Fix ubuntu version for python 3.6 GitHub actions
  • Loading branch information
lcognat committed Dec 12, 2022
2 parents 9cc7174 + f21a0b6 commit f8515fa
Showing 1 changed file with 42 additions and 4 deletions.
46 changes: 42 additions & 4 deletions .github/workflows/check-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,54 @@ name: Tests
on: [push]

jobs:
build:

tests:
runs-on: ubuntu-latest
strategy:
max-parallel: 2
matrix:
python-version: [3.6,3.7,3.8,3.9]
python-version: [3.7,3.8,3.9]
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 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
tests-python36:
runs-on: ubuntu-20.04
strategy:
max-parallel: 2
matrix:
python-version: [3.6]
services:
postgres:
image: postgis/postgis:12-master
image: postgis/postgis:14-master
env:
POSTGRES_DB: db-concrete-datastore
POSTGRES_USER: user-concrete-datastore
Expand Down

0 comments on commit f8515fa

Please sign in to comment.