Test PROJ and Cython Latest #556
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: 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 | |
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@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- 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 |