Skip to content

Commit

Permalink
added github action for automatic tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PyryL committed Nov 11, 2023
1 parent b06b915 commit 658c98c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

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

0 comments on commit 658c98c

Please sign in to comment.