-
Notifications
You must be signed in to change notification settings - Fork 216
65 lines (57 loc) · 1.73 KB
/
test_proj_latest.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Test PROJ and Cython 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 --upgrade --pre --only-binary :all: -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple 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 Grids
shell: bash
run: |
$PROJ_DIR/bin/projsync --quiet --bbox -175,0,-50,85
python -m pytest