Skip to content

Fix RTD & update dependencies again #56

Fix RTD & update dependencies again

Fix RTD & update dependencies again #56

Workflow file for this run

on:
push:
branches: ['*']
pull_request:
branches: ['*']
name: tests
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.10', '3.11']
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up cache
uses: actions/cache@v3
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{runner.os}}-poetry-${{hashFiles('poetry.lock')}}
- name: Set up Python ${{matrix.python}}
uses: actions/setup-python@v4
with:
python-version: ${{matrix.python}}
- name: Install Poetry
uses: abatilo/actions-poetry@v2.3.0
with:
poetry-version: 1.6.1
- name: Install dependencies
run: poetry install
- name: Lint project
run: >-
poetry run ruff yaenv &&
poetry run mypy -p yaenv
- name: Run tests
run: poetry run pytest --cov-report=xml
- name: Upload coverage to codecov
uses: codecov/codecov-action@v3