Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run linter and tests in CI build #48

Merged
merged 26 commits into from Jun 20, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
fbc32eb
Run linter and tests in CI build
chriskilding Jun 18, 2022
37449ea
Fix linter invocation and upgrade its dependency
chriskilding Jun 18, 2022
7c8a221
Parallelize MyPy and Black checks
chriskilding Jun 18, 2022
25f8855
Try Python 3.10 to see if generics error disappears
chriskilding Jun 18, 2022
ad18c9c
Bump actions/setup-python to v4
chriskilding Jun 18, 2022
8c3a3af
Remove poetry cache
chriskilding Jun 18, 2022
f78c3f4
Move poetry install to after setup-python
chriskilding Jun 18, 2022
96db55c
Tweak
chriskilding Jun 18, 2022
f591272
Try a poetry env use fix
chriskilding Jun 18, 2022
81340b4
Try poetry env use one-liner
chriskilding Jun 18, 2022
be18e00
Tweak
chriskilding Jun 18, 2022
108a3bd
Apply Black formatter
chriskilding Jun 18, 2022
9f7ccfb
Try without cache: poetry
chriskilding Jun 19, 2022
8d454b9
Set up poetry after python
chriskilding Jun 19, 2022
9f86236
Try poetry 1.2.0b2
chriskilding Jun 19, 2022
6edc366
Reordering
chriskilding Jun 19, 2022
0efe8b7
try python 3.9
chriskilding Jun 19, 2022
39134f8
alternate poetry install method
chriskilding Jun 19, 2022
9ff82c3
Use install-poetry action
chriskilding Jun 19, 2022
eab3bf4
Tweak
chriskilding Jun 19, 2022
166cc1d
Just install libgeos-dev
chriskilding Jun 19, 2022
96042bc
Add libproj-dev
chriskilding Jun 19, 2022
08feace
Replicate
chriskilding Jun 19, 2022
985968c
Try generics again
chriskilding Jun 19, 2022
0f33933
Reformat
chriskilding Jun 19, 2022
4e7ce32
Add types-requests and types-pillow stubs to satisfy mypy
chriskilding Jun 20, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
40 changes: 37 additions & 3 deletions .github/workflows/test.yml
@@ -1,12 +1,13 @@
name: Test
name: Build

on: [push, pull_request, workflow_dispatch]

permissions:
contents: read

jobs:
build:
test:
name: "Test"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -19,4 +20,37 @@ jobs:
python-version: "3.9"
- name: Install dependencies
run: poetry install
# TODO run tests
- name: Test
run: poetry run pytest
black:
girotobial marked this conversation as resolved.
Show resolved Hide resolved
name: "Black"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v3
with:
cache: poetry
python-version: "3.9"
- name: Install dependencies
run: poetry install
- name: Black
run: poetry run black src/
mypy:
name: "MyPy"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v3
with:
cache: poetry
python-version: "3.9"
- name: Install dependencies
run: poetry install
- name: MyPy
run: poetry run mypy