Skip to content

0.8.0

0.8.0 #23

Workflow file for this run

name: CI
on:
push:
tags:
- 'v*'
branches:
- master
pull_request:
branches:
- master
jobs:
checks:
runs-on: '${{ matrix.os }}'
strategy:
matrix:
os:
- ubuntu-22.04
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
steps:
- name: 'Set up Python ${{ matrix.python-version }}'
uses: actions/setup-python@v4
with:
python-version: '${{ matrix.python-version }}'
- uses: actions/checkout@v3
- run: pip install -U pip setuptools
- run: pip install -r requirements.txt -r requirements-ci.txt
- run: flake8 aiohttp_swagger3 tests examples
- run: isort -q --check --diff aiohttp_swagger3 tests examples
- run: black -q -l 120 --check --diff aiohttp_swagger3 tests examples
- run: mypy aiohttp_swagger3
- run: pytest --cov=aiohttp_swagger3 --cov-report=term-missing tests/
- uses: codecov/[email protected]
deploy:
name: Deploy
runs-on: ubuntu-22.04
needs: checks
# Run only on pushing a tag
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/[email protected]
with:
password: ${{ secrets.PYPI_API_TOKEN }}