diff --git a/.github/workflows/python-build.yml b/.github/workflows/python-build.yml index 9fd2bd8a..d9f98c07 100644 --- a/.github/workflows/python-build.yml +++ b/.github/workflows/python-build.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.12","3.11", "3.10"] + python-version: ["3.12", "3.11", "3.10"] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index b86bb0fd..3d18754a 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -38,7 +38,7 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --output-file ./reports/flake8/flake8stats.txt - name: Test with pytest run: | - pytest --cov=midealocal --cov-report html --cov-report xml --junitxml=reports/junit/junit.xml + python -m pytest --rootdir . --cov=midealocal --cov-report html --cov-report xml --junitxml=reports/junit/junit.xml ./tests/ mv htmlcov reports/coverage - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3