Skip to content

Test PROJ Latest

Test PROJ Latest #633

name: Test PROJ Latest
on:
push:
branches: [ main ]
schedule:
- cron: '0 0 * * 0'
pull_request: # also build on PRs touching this file
paths:
- ".github/workflows/test_proj_latest.yaml"
- "ci/proj-compile.sh"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
env:
DEBIAN_FRONTEND: noninteractive
jobs:
test_proj_latest:
name: PROJ Latest
runs-on: ubuntu-latest
env:
PYPROJ_FULL_COVERAGE: YES
PROJ_DIR: ${{ github.workspace }}/proj_install
PROJ_DATA: ${{ github.workspace }}/proj_install/share/proj
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install PROJ
shell: bash
run: |
sudo apt-get update
sudo apt-get install -qq sqlite3 libsqlite3-dev libtiff-dev libcurl4-openssl-dev cmake
bash ci/proj-compile.sh git
- name: Install and Log Environment
shell: bash
run: |
python -V
python -m pip install cython
python -m pip install -e .
python -m pip install -r requirements-test.txt
pyproj -v
- name: Test
shell: bash
run: |
python -m pytest --cov-report term-missing --cov=pyproj --cov-report xml
- name: Test Network
shell: bash
env:
PROJ_NETWORK: ON
run: |
python -m pytest
- name: Test Global Context
shell: bash
env:
PYPROJ_GLOBAL_CONTEXT: ON
run: |
python -m pytest
- name: Test Network & Global Context
shell: bash
env:
PROJ_NETWORK: ON
PYPROJ_GLOBAL_CONTEXT: ON
run: |
python -m pytest
- name: Test Grids
shell: bash
run: |
$PROJ_DIR/bin/projsync --quiet --bbox -175,0,-50,85
python -m pytest