Merge pull request #12 from pacificclimate/projections #62
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: 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 |