Skip to content

Merge pull request #12 from pacificclimate/projections #62

Merge pull request #12 from pacificclimate/projections

Merge pull request #12 from pacificclimate/projections #62

Workflow file for this run

name: Python CI
on: push
jobs:
test:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install OS Dependencies
run: |
sudo apt update
sudo apt install python3-dev
sudo apt-get install -yq postgresql-14-postgis-3
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install project
run: |
poetry install
- name: Code format check
run: poetry run black . --check
- name: Test with pytest
run: poetry run pytest