Feature/update packages #22
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
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
unit-test: | |
name: unit test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: install poetry | |
run: | | |
curl -sSL https://install.python-poetry.org | python - -y | |
- name: checkout code | |
uses: actions/checkout@v2 | |
- name: install package | |
run: poetry install | |
- name: pytest | |
run: poetry run pytest | |
- name: black | |
run: poetry run black --check . | |
- name: isort | |
run: poetry run isort -c . | |
- name: flake8 | |
run: poetry run flake8 |