Bump to v6.0.1 #483
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and test | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.9", "3.10", "3.11"] | |
services: | |
db: | |
image: barrydanielsnl/postgres14 | |
env: | |
POSTGRES_DB: cicd | |
POSTGRES_USER: dataservices | |
POSTGRES_PASSWORD: insecure | |
ports: | |
- 5432:5432 | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
sudo apt update -y | |
sudo apt install -y libgdal30 | |
python -m pip install --upgrade pip | |
python -m pip install .[django,tests] | |
- name: Test | |
run: | | |
pytest tests | |
env: | |
DATABASE_URL: postgresql://dataservices:insecure@localhost:5432/cicd |