Skip to content

test

test #15

Workflow file for this run

name: Tests
on:
workflow_dispatch:
push:
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./budget-app
steps:
- uses: actions/checkout@v3
# Install dependencies
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
# Run script
- name: Testing
run: poetry run pytest --cov .
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}