build(deps-dev): Bump types-requests #545
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: CI | |
on: [push] | |
jobs: | |
style: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
installer-parallel: true | |
- uses: actions/cache@v3 | |
id: cache | |
with: | |
path: | | |
.venv | |
.tox | |
key: tox-${{ runner.os }}-${{ hashFiles('poetry.lock') }} | |
- name: Install dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: poetry install --no-root --sync | |
- name: flake8 | |
run: poetry run tox -e flake8 | |
- name: black | |
run: poetry run tox -e black | |
- name: isort | |
run: poetry run tox -e isort | |
- name: mypy | |
run: poetry run tox -e mypy | |
unittests: | |
needs: style | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python-version: ['3.9', '3.10', '3.11'] | |
os: [ubuntu-latest] | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
installer-parallel: true | |
- uses: actions/cache@v3 | |
id: tox-cache | |
with: | |
path: | | |
.venv | |
.tox | |
key: tox-${{ matrix.os }}-python${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }} | |
- name: Install dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: poetry install --no-root --sync | |
- name: Unittests | |
run: poetry run -- tox -e ut -- --cov-report=xml | |
- name: Upload coverage | |
uses: codecov/codecov-action@v1 |