Merge pull request #139 from dzuev2/main #320
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
- python_version: "3.12" | |
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 !' |