From 975f63aa90e6988b5408d92f00c1e55b6ac178a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Souleymane=20TOUR=C3=89?= Date: Mon, 12 Dec 2022 16:10:12 +0100 Subject: [PATCH 1/5] Update test workflow --- .github/workflows/check-tests.yml | 43 +++++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-tests.yml b/.github/workflows/check-tests.yml index 4d8e1814..7a9b91be 100644 --- a/.github/workflows/check-tests.yml +++ b/.github/workflows/check-tests.yml @@ -3,7 +3,7 @@ name: Tests on: [push] jobs: - build: + tests: runs-on: ubuntu-latest strategy: @@ -12,7 +12,46 @@ jobs: python-version: [3.6,3.7,3.8,3.9] services: postgres: - image: postgis/postgis:12-master + 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-python3.6: + runs-on: ubuntu-22.04 + strategy: + max-parallel: 2 + matrix: + python-version: [3.6] + services: + postgres: + image: postgis/postgis:14-master env: POSTGRES_DB: db-concrete-datastore POSTGRES_USER: user-concrete-datastore From 9c74866ea258bb9ac7afdfbec59f4739cd15123d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Souleymane=20TOUR=C3=89?= Date: Mon, 12 Dec 2022 16:11:04 +0100 Subject: [PATCH 2/5] Fix workflow --- .github/workflows/check-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-tests.yml b/.github/workflows/check-tests.yml index 7a9b91be..360d494c 100644 --- a/.github/workflows/check-tests.yml +++ b/.github/workflows/check-tests.yml @@ -43,7 +43,7 @@ jobs: run: | codecov - tests-python3.6: + tests-python36: runs-on: ubuntu-22.04 strategy: max-parallel: 2 From ca48cd229d3a5c33fcae7efb11970e9e5a47a91f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Souleymane=20TOUR=C3=89?= Date: Mon, 12 Dec 2022 16:11:56 +0100 Subject: [PATCH 3/5] Remove 3.6 for latest tests --- .github/workflows/check-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-tests.yml b/.github/workflows/check-tests.yml index 360d494c..7c8e204f 100644 --- a/.github/workflows/check-tests.yml +++ b/.github/workflows/check-tests.yml @@ -9,7 +9,7 @@ jobs: 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 From ad244e0c9abacea7ceeaba455a6308f8a7a8d59c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Souleymane=20TOUR=C3=89?= Date: Mon, 12 Dec 2022 16:12:47 +0100 Subject: [PATCH 4/5] Fix python3.6 runner --- .github/workflows/check-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-tests.yml b/.github/workflows/check-tests.yml index 7c8e204f..3c849ce2 100644 --- a/.github/workflows/check-tests.yml +++ b/.github/workflows/check-tests.yml @@ -44,7 +44,7 @@ jobs: codecov tests-python36: - runs-on: ubuntu-22.04 + runs-on: ubuntu-20.04 strategy: max-parallel: 2 matrix: From f21a0b6d63cfa06988729fca87259213265edd21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Souleymane=20TOUR=C3=89?= Date: Mon, 12 Dec 2022 16:26:09 +0100 Subject: [PATCH 5/5] Add space --- .github/workflows/check-tests.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/check-tests.yml b/.github/workflows/check-tests.yml index 3c849ce2..0d54bad5 100644 --- a/.github/workflows/check-tests.yml +++ b/.github/workflows/check-tests.yml @@ -4,7 +4,6 @@ on: [push] jobs: tests: - runs-on: ubuntu-latest strategy: max-parallel: 2