mirror of
https://github.com/senju1337/senju.git
synced 2025-12-24 07:39:29 +00:00
change(feat/OPS-31): forgot about poetry
This commit is contained in:
parent
ff50d4f5bb
commit
1b571509d0
1 changed files with 33 additions and 0 deletions
33
.github/workflows/ci.yml
vendored
Normal file
33
.github/workflows/ci.yml
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
name: CI # Name of the workflow
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- devel
|
||||||
|
- master
|
||||||
|
- feat/OPS-31
|
||||||
|
|
||||||
|
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: Install dependencies
|
||||||
|
run: poetry install
|
||||||
|
|
||||||
|
- name: Run tests with coverage
|
||||||
|
run: poetry run coverage run -m pytest
|
||||||
|
|
||||||
|
- name: Upload coverage to Codecov
|
||||||
|
uses: codecov/codecov-action@v3
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
file: ./coverage.xml
|
||||||
Loading…
Add table
Add a link
Reference in a new issue