bump version 0.1.0 -> 0.2.0 #83
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: Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
steps: | |
# check-out repo and set-up python | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
id: setup-python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# Setup services with docker compose | |
- name: Setup env config | |
run: | | |
cp .env.example .env | |
sed -i 's/GEOSERVER_HOST=localhost/GEOSERVER_HOST=127.0.0.1/' .env | |
sed -i 's/POSTGRES_HOST=localhost/POSTGRES_HOST=127.0.0.1/' .env | |
- name: Setup docker | |
run: sudo apt install docker-compose | |
- name: Start services | |
run: docker-compose up -d | |
# Install & configure poetry | |
- name: Setup python environment | |
run: | | |
sudo apt install pipx | |
pipx ensurepath | |
pipx install poetry | |
poetry install | |
- name: Run tests | |
run: poetry run python -m pytest tests/ --cov --cov-report=xml | |
- name: Upload coverage | |
uses: codecov/codecov-action@v2 | |
with: | |
fail_ci_if_error: false |