Files
fastapi-cache/.github/workflows/ci.yml
Martijn Pieters 4a012c7cae CI: don't run this workflow twice on a PR
If a maintainer pushes to a PR, the workflow push and pull_request events
both trigger. Limit the workflow to the main branch, explicitly.
2023-05-15 17:23:26 +01:00

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