mirror of
https://github.com/long2ice/fastapi-cache.git
synced 2026-03-24 20:47:54 +00:00
If a maintainer pushes to a PR, the workflow push and pull_request events both trigger. Limit the workflow to the main branch, explicitly.
29 lines
593 B
YAML
29 lines
593 B
YAML
name: ci
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
ci:
|
|
strategy:
|
|
matrix:
|
|
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
|
|
|
|
name: "Test on Python ${{ matrix.python }}"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: "${{ matrix.python }}"
|
|
- name: Install and configure Poetry
|
|
run: |
|
|
pip install -U pip poetry
|
|
poetry config virtualenvs.create false
|
|
- name: CI
|
|
run: make ci
|