Merge pull request #49 from senju1337/feat/OPS-31

Feat/ops 31: add code coverage ci and readme display
This commit is contained in:
An0nymous 2025-03-27 10:20:39 +01:00 committed by GitHub
commit 2f46d3fdbb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 38 additions and 0 deletions

36
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,36 @@
name: CI # Name of the workflow
on:
push:
branches:
- master
jobs:
test: # Defines a job called "test"
runs-on: ubuntu-latest # The job runs on the latest Ubuntu runner
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Poetry
run: pip install poetry
- name: Install dependencies
run: poetry install
- name: Run tests with coverage
run: poetry run coverage run -m pytest
- name: Generate Coverage Report # Ensure creation of coverage.xml
run: poetry run coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./coverage.xml

View file

@ -1,2 +1,4 @@
![Codecov](https://codecov.io/gh/senju1337/senju/branch/master/graph/badge.svg)
# senju
API / Webservice for Phrases/Words/Kanji/Haiku

0
senju/__init__.py Normal file
View file