-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
840a4df
commit 3e40d45
Showing
6 changed files
with
602 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Run tests | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9.1 | ||
- uses: abatilo/actions-poetry@v2.0.0 | ||
with: | ||
poetry-version: 1.1.4 | ||
- name: Install dependancies | ||
run: | | ||
poetry install | ||
- name: Lint | ||
run: | | ||
poetry run black --check . | ||
poetry run isort -c . | ||
poetry run mypy . | ||
poetry run flake8 | ||
- name: Test | ||
run: | | ||
poetry run pytest |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,22 @@ | ||
# vaccine-eligibility | ||
Demo application for what a vaccine eligibility flow could look like | ||
|
||
## Development | ||
This project uses [poetry](https://python-poetry.org/docs/) for packaging and dependancy | ||
management. Once poetry is installed, install dependancies by running | ||
```bash | ||
poetry install | ||
``` | ||
|
||
To run autoformatting and linting, run | ||
```bash | ||
poetry run black . | ||
poetry run isort . | ||
poetry run mypy . | ||
poetry run flake8 | ||
``` | ||
|
||
To run the tests, run | ||
```bash | ||
poetry run pytest | ||
``` |
Oops, something went wrong.