Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add an ogc github workflow
- Loading branch information
1 parent
e5989c1
commit f9c0cda
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Run OGC tests for QGIS Server | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- release-** | ||
pull_request: | ||
branches: | ||
- master | ||
- release-** | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
|
||
- name: Setup build dependencies | ||
run: | | ||
docker build -t qgis_server_deps -f .ci/ogc/Dockerfile .ci/ogc/ | ||
- name: Cache | ||
id: cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.ccache | ||
key: ogc | ||
|
||
- name: Run build | ||
run: | | ||
docker run -v ~/.ccache:/root/ccache -v $(pwd):/usr/src/qgis qgis_server_deps /usr/src/qgis/.ci/ogc/build.sh | ||
- name: Install pyogctest | ||
run: | | ||
sudo apt-get install python3-virtualenv virtualenv git | ||
git clone https://github.com/pblottiere/pyogctest | ||
virtualenv -p /usr/bin/python3 venv && source venv/bin/activate && pip install -e pyogctest/ |