Skip to content

⬆ Bump fastapi-cli from 0.0.6 to 0.0.7 #120

⬆ Bump fastapi-cli from 0.0.6 to 0.0.7

⬆ Bump fastapi-cli from 0.0.6 to 0.0.7 #120

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: ci
on:
push:
branches: [ "main", "dev" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", 3.11, 3.12, 3.13]
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-pip-
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Prepare tools
run: |
python -m pip install --upgrade pip poetry
poetry config virtualenvs.create false
poetry self add poetry-plugin-version
- name: Install requirements
run: |
poetry install
poetry run pip install coveralls
- name: Check code style and Type Hint
run: ./scripts/check.py
- name: test
run: ./scripts/test.py
- name: build
run: poetry build
- name: Upload Coverage
run: poetry run coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.python-version }}
COVERALLS_PARALLEL: true
coveralls:
name: Finish Coveralls
needs: test
runs-on: ubuntu-latest
steps:
- name: Finished
run: |
pip3 install --upgrade coveralls
coveralls --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}