add custom field add/delete api support #34
Workflow file for this run
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: lint-unittest | |
on: | |
pull_request: | |
branches: | |
- master | |
- develop | |
jobs: | |
lint-and-unittest: | |
name: Run tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.8', '3.9', '3.10', '3.11'] | |
steps: | |
# See: https://github.com/actions/checkout | |
- name: Checkout | |
uses: actions/checkout@v3 | |
# See: https://github.com/actions/setup-python | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# install pipenv and deps | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements-dev.txt | |
# lint | |
- name: Run lint | |
run: flake8 | |
# test | |
- name: Run unittests & coverage | |
run: | | |
coverage run -m unittest -v | |
coverage report -m |