Skip to content

Added actions for v2 #43

Added actions for v2

Added actions for v2 #43

Workflow file for this run

on:
push:
branches: [main, v2]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "^3.10"
- name: Install poetry
run: |
python -m pip install poetry==1.3.2
- name: Configure poetry
run: |
python -m poetry config virtualenvs.in-project true
- name: Cache the virtualenv
uses: actions/cache@v2
with:
path: ./.venv
key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: |
python -m poetry install
- name: Run tests
run: |
python -m poetry run python -m pytest tests -sxv --cov .
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3