Skip to content

Merge pull request #3 from PyryL/week4 #12

Merge pull request #3 from PyryL/week4

Merge pull request #3 from PyryL/week4 #12

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install Poetry
run: pip install poetry
- name: Install dependencies
run: poetry install
- name: Run coverage
run: poetry run invoke coverage
- name: Create coverage report
run: poetry run coverage xml
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Run lint
run: poetry run invoke lint