Skip to content

WIP: [RFC]: Bring Flask-GoogleMaps up to date with latest dependencies #116

WIP: [RFC]: Bring Flask-GoogleMaps up to date with latest dependencies

WIP: [RFC]: Bring Flask-GoogleMaps up to date with latest dependencies #116

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python: ["3.9", "3.10", "3.11", "3.12"]
poetry-version: [1.8.2]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Set up Poetry ${{ matrix.poetry-version }}
uses: abatilo/[email protected]
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Set up cache
uses: actions/[email protected]
id: cache
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }}
- name: Ensure cache is healthy
if: steps.cache.outputs.cache-hit == 'true'
run: poetry run pip --version >/dev/null 2>&1 || rm -rf .venv
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: poetry install
- name: Code Quality
run: |
poetry run black -l 80 --check .
- name: Unit tests
run: |
poetry run pytest --cov .