Skip to content

[pre-commit.ci] pre-commit autoupdate #309

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #309

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- "main"
tags:
- "*"
jobs:
build:
strategy:
matrix:
include:
- python_version: "3.8"
script: tests
- python_version: "3.9"
script: tests
- python_version: "3.10"
script: tests
- python_version: "3.11"
script: tests
name: "py${{ matrix.python_version }} / ${{ matrix.script }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
id: setup-python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python_version }}
- name: Pip, Pre-commit & Poetry caches
uses: actions/cache@v2
with:
path: |
~/.cache/
key: ${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('poetry.lock') }}-${{ hashFiles('.pre-commit-config.yaml') }}
- name: Install Poetry
run: pip install poetry
- name: Install Dev dependencies
run: poetry install
- name: Run ${{ matrix.script }}
run: poetry run scripts/${{ matrix.script }}
env:
PYTEST_ADDOPTS: "--cov-report=xml"
report-status:
name: success
runs-on: ubuntu-latest
needs: build
steps:
- name: Report success
run: echo 'Success !'