Skip to content

💚Build

💚Build #521

Workflow file for this run

name: 💚Build
on:
# push:
# branches:
# - master
schedule:
- cron: '30 6 * * *'
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 6
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: 🚧 Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: 🚧 Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: 🧪Run Tests
run: |
python3 -m pytest --cov=fastapi_utilities --cov-report=xml tests/
- name: ⚗️Submit coverage report
run: |
python3 -m codecov --token=${{ secrets.CODECOV_TOKEN }}