bump ili2db to 4.11.1 #261
Workflow file for this run
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: Continuous integration | |
on: | |
push: | |
branches: | |
- main | |
- release-** | |
pull_request: | |
branches: | |
- '**' | |
release: | |
types: [released] | |
jobs: | |
# Run unit tests | |
test: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
qgis_version: [release-3_22, release-3_28, latest] | |
env: | |
QGIS_TEST_VERSION: ${{ matrix.qgis_version }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Package PyPI Packages | |
run: | | |
sudo ./scripts/package_pip_packages.sh | |
- name: Test on QGIS | |
run: docker-compose -f .docker/docker-compose.gh.yml run qgis /usr/src/.docker/run-docker-tests.sh | |
- name: Test on QGIS with PG | |
run: docker-compose -f .docker/docker-compose.gh.yml run -e "PGHOST=postgres11" qgis /usr/src/.docker/run-docker-tests.sh | |
release: | |
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI | |
if: startsWith(github.ref, 'refs/tags/v') | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@master | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.9 | |
- name: Package PyPI Packages | |
run: | | |
sudo ./scripts/package_pip_packages.sh | |
- name: Get version number | |
id: v | |
run: | | |
export VERSION_NUMBER=${GITHUB_REF/refs\/tags\/v} | |
echo $VERSION_NUMBER > VERSION | |
echo "::set-output name=VERSION::${VERSION_NUMBER}" | |
- name: Install pypa/build | |
run: >- | |
python -m | |
pip install | |
build | |
--user | |
- name: Build a binary wheel and a source tarball | |
run: >- | |
python -m | |
build | |
--sdist | |
--wheel | |
--outdir dist/ | |
. | |
- name: 🚀 Upload Release Asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: dist/modelbaker-${{ steps.v.outputs.VERSION }}-py3-none-any.whl | |
asset_name: dist/modelbaker-${{ steps.v.outputs.VERSION }}-py3-none-any.whl | |
asset_content_type: application/binary | |
- name: Publish distribution 📦 to PyPI | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} |