Skip to content

Update branch with master #297

Update branch with master

Update branch with master #297

Workflow file for this run

---
name: publish Python package
on:
push:
pull_request:
branches: [master]
jobs:
publish_package:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
fail-fast: [true]
steps:
- uses: actions/checkout@v4
- name: build package
run: |
sudo apt-get -y install libgdal-dev gdal-bin pandoc
python -m pip install --upgrade pip
pip install coveralls wheel
pip install -r dev-requirements.txt
pytest --cov niche_vlaanderen --verbose --tb=long
python setup.py build
python setup.py sdist
python setup.py bdist_wheel
- name: Publish package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Get documentation dependencies
run: |
sudo apt install pandoc
pip install -r doc-requirements.txt
- name: Check if documentation builds succesfully
run: |
pip install .
cd docs
make html