♻️✅ Refactor config parsing, add tests for co… #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
code-style-check: | |
runs-on: ubuntu-latest | |
name: Unit Tests (Python 3.7) | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.7 | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
- name: Install ExCore | |
run: poetry install --no-interaction --with dev | |
- name: Run pytest | |
run: | | |
cd tests | |
pip install toml | |
python init.py | |
python -m pytest | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |