feat(WIP): api migration #117
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: api check + unit test | |
on: | |
push: | |
paths: | |
- .github/workflows/api-unit-test.yaml | |
- api/** | |
branches: | |
- main | |
pull_request: | |
paths: | |
- .github/workflows/api-unit-test.yaml | |
- api/** | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: api/ | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install -U pip poetry | |
pip install virtualenv | |
make install-deps | |
- name: Lint with ruff | |
run: make lint | |
- name: Unit test | |
run: make test |