Bump types-requests from 2.31.0.3 to 2.31.0.5 #202
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
# Workflow is triggered on push and pull_request events. | |
# | |
# Docs: | |
# - GitHub Actions: https://help.github.com/en/actions | |
# | |
name: Linting & Test | |
on: | |
# Trigger the workflow on pushes to only the 'main' branch (this avoids duplicate checks being run e.g. for dependabot pull requests) | |
push: | |
branches: [ main ] | |
# Trigger the workflow on any pull request | |
pull_request: | |
jobs: | |
linting-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
cache: 'pip' | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Lint - isort | |
run: isort main.py trivia_box.py test/ | |
- name: Lint - mypy | |
run: mypy main.py trivia_box.py test/ | |
- name: Lint - flake8 | |
run: flake8 main.py trivia_box.py test/ | |
- name: Lint - blue | |
run: blue --check main.py trivia_box.py test/ | |
- name: Test | |
run: pytest |