0.10.0 v2 #40
Workflow file for this run
This file contains hidden or 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: | |
tags: | |
- 'v*' | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
checks: | |
runs-on: '${{ matrix.os }}' | |
strategy: | |
matrix: | |
os: | |
- ubuntu-22.04 | |
python-version: | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
- '3.12' | |
- '3.13' | |
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: ruff format --check | |
- run: ruff check | |
- run: mypy aiohttp_swagger3 | |
- run: pytest --cov=aiohttp_swagger3 --cov-report=term-missing tests/ | |
- uses: codecov/codecov-action@v5.3.1 | |
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.11' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools build | |
- name: Build package | |
run: python -m build | |
- name: Publish package | |
uses: pypa/gh-action-pypi-publish@v1.6.4 | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} |