Skip to content

♻️✅ Refactor config parsing, add tests for co… #14

♻️✅ Refactor config parsing, add tests for co…

♻️✅ Refactor config parsing, add tests for co… #14

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.5.1
- name: Install Dependencies
run: poetry install --with dev
if: steps.cache.outputs.cache-hit != 'true'
- name: Test with pytest
run: |
cd ./tests
poetry run python init.py
poetry run pytest --cov .
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}