Fixed error #708
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: Run unit tests with pytest | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: "0 1 * * SUN" | |
workflow_dispatch: | |
jobs: | |
tests: | |
runs-on: "ubuntu-latest" | |
name: Run tests | |
steps: | |
- name: Check out code from GitHub | |
uses: "actions/checkout@v4" | |
- name: Setup Python | |
uses: "actions/setup-python@v5" | |
with: | |
python-version: "3.12" | |
- name: Install requirements | |
run: | | |
pip install --constraint=.github/workflows/constraints.txt pip | |
pip install -r requirements_test.txt | |
- name: Tests suite | |
run: | | |
pytest \ | |
--timeout=9 \ | |
--durations=10 \ | |
-n auto \ | |
-p no:sugar \ | |
--cov=api.calculator \ | |
--cov-report=xml \ | |
tests | |
- name: Upload coverage reports to Codecov with GitHub Action | |
uses: codecov/codecov-action@v4 | |
if: always() | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
slug: jwillemsen/daikin_onecta |