Skip to content

Start testing on Python 3.12 #88

Start testing on Python 3.12

Start testing on Python 3.12 #88

Workflow file for this run

name: Test
on:
push:
pull_request:
types: [opened, synchronize]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: pip install flit
- name: Install package, dependencies, and test tools
run: |
python setup.py sdist
python -m pip install `ls -1 dist/*.tar.gz`[test]
python -m pip install pytest pytest-cov flake8 black mypy
- name: Check black compliance
run : |
black --check fastapi_offline
- name: Run linters
run : |
flake8 fastapi_offline
mypy fastapi_offline
- name: Run unit tests
run: |
pytest tests --cov=fastapi_offline --cov-report=term-missing --cov-report=xml
- name: Upload coverage
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}