Skip to content

fixed postgis version #26

fixed postgis version

fixed postgis version #26

Workflow file for this run

name: Tests
on: [ "push", "pull_request" ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python_version: [ '3.9', '3.10', '3.12' ]
django_version: [ '3.2.12', '4.2', '5.0.3' ]
steps:
- uses: huaxk/postgis-action@v1
with:
postgresql version: '11' # See https://https://hub.docker.com/r/mdillon/postgis for available versions, if it is not specified, use the default value 'latest'
postgresql password: 'password' # This environment variable sets the superuser password for PostgreSQL, maybe string or secrets, the default superuser is defined by the input environment variable: postgresql user.
postgresql user: 'test' # This optional environment variable is used in conjunction with postgresql password to set a user and its password. This variable will create the specified user with superuser power and a database with the same name. If it is not specified, then the default user of 'postgres' will be used.
postgresql db: 'test' # This optional environment variable can be used to define a different name for the default database that is created when the image is first started. If it is not specified, then the value of postgresql user will be used.
- uses: actions/checkout@v2
- name: Set up Python version
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python_version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install coverage
pip install coveralls
pip install Django==${{ matrix.django_version }}
pip install psycopg2
- name: install GDAL
run: |
sudo add-apt-repository ppa:ubuntugis/ppa
sudo apt-get update
sudo apt-get install binutils libproj-dev gdal-bin
- name: Run tests
run: coverage run --source=mapbox_location_field manage.py test
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true
flag-name: django-${{ matrix.django_version }}-python-${{ matrix.python_version }}
finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: AndreMiras/coveralls-python-action@develop
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true