29 lines
660 B
YAML
Raw Normal View History

2022-12-11 14:53:04 +00:00
name: CI
on:
push:
branches: main
pull_request:
branches: main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
2022-12-11 14:56:41 +00:00
uses: actions/setup-python@v4.3.1
2022-12-11 14:53:04 +00:00
with:
2022-12-11 14:58:38 +00:00
python-version: '3.10'
2022-12-11 14:53:04 +00:00
- name: Install Poetry
run: pip install poetry
- name: Init environment
run: poetry install
- name: Unit tests
2022-12-12 18:04:02 +00:00
run: poetry run coverage run --branch -m pytest tests
- name: Write coverage report
run: poetry run coverage xml
- name: Send coverage to Codecov
run: bash <(curl -s https://codecov.io/bash)