Bump idna from 3.3 to 3.7 #298
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, check formatting, and run tests | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9"] | |
steps: | |
# Check out the repo | |
- name: Check out repository | |
uses: actions/checkout@v2 | |
# Set up Python | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# cache poetry | |
- name: Load cached $HOME/.local | |
uses: actions/[email protected] | |
with: | |
path: ~/.local | |
key: dotlocal-${{ runner.os }}-${{ hashFiles('.github/workflows/verify.yml') }} | |
# Install poetry | |
- name: Install poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-in-project: true | |
# Load cached virtual environment if cache exists | |
- name: Load cached venv | |
uses: actions/cache@v2 | |
with: | |
path: .venv | |
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-v2-${{ hashFiles('**/poetry.lock') }} | |
# Install dependencies if cache does not exist | |
- name: Install dependencies | |
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | |
run: poetry install --no-interaction --no-root | |
# Run formatting check | |
- name: Run formatting check | |
run: poetry run black --check . | |
# Run linting | |
- name: Run pylint | |
run: poetry run pylint ddssa | |
# Run tests | |
- name: Run tests | |
run: | | |
poetry run coverage run -m unittest discover -s ddssa/tests | |
poetry run coverage report --fail-under=70 |