Skip to content

#88 Added linting checks to the CI pipeline (#94) #158

#88 Added linting checks to the CI pipeline (#94)

#88 Added linting checks to the CI pipeline (#94) #158

Workflow file for this run

---
name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
tests:
name: "Python ${{ matrix.python-version }}"
runs-on: "ubuntu-latest"
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: "actions/checkout@v3"
- uses: "actions/setup-python@v4"
with:
python-version: "${{ matrix.python-version }}"
- name: cache poetry install
uses: actions/cache@v2
with:
path: ~/.local
key: poetry-1.2.1-0
- uses: snok/install-poetry@v1
with:
version: 1.4.1
virtualenvs-create: true
virtualenvs-in-project: true
- name: cache deps
id: cache-deps
uses: actions/cache@v2
with:
path: .venv
key: py-${{ matrix.python-version }}-deps-${{ hashFiles('**/poetry.lock') }}
- run: poetry install --no-interaction --no-root
if: steps.cache-deps.outputs.cache-hit != 'true'
- run: poetry install --no-interaction
- name: "Linting"
run: "make lint-check"
- name: "Build package & docs"
run: "make build"
- name: "Run tests"
run: "make test"
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v2