chore(deps): update dependency coverage to v7 #127
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: CI | |
on: [push] | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install Poetry | |
run: | | |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - | |
echo "$HOME/.poetry/bin" >> $GITHUB_PATH | |
env: | |
POETRY_VERSION: "1.1.4" | |
- name: Install dependencies | |
run: | | |
poetry install | |
env: | |
POETRY_VIRTUALENVS_CREATE: false | |
- name: Lint | |
uses: suo/flake8-github-action@releases/v1 | |
with: | |
checkName: Test | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Format | |
run: | | |
poetry run format | |
if ! git diff --quiet pyratelimit tests ; then exit 1 ; fi | |
- name: Typecheck | |
run: | | |
poetry run typecheck | |
- name: Test | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
poetry run test | |
poetry run cov |