Skip to content

Commit

Permalink
Add basic package setup
Browse files Browse the repository at this point in the history
  • Loading branch information
rudigiesler committed Jan 29, 2021
1 parent 840a4df commit 3e40d45
Show file tree
Hide file tree
Showing 6 changed files with 602 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yaml
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
20 changes: 20 additions & 0 deletions README.md
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
```
Loading

0 comments on commit 3e40d45

Please sign in to comment.