diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 90d6548..14e63f8 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -23,22 +23,18 @@ jobs: uses: eifinger/setup-rye@v4 - name: Set up Python ${{ matrix.python-version }} with Rye run: | - export PATH="$HOME/.rye/bin:$PATH" rye pin python ${{ matrix.python-version }} - name: Install dependencies with Rye run: | - export PATH="$HOME/.rye/bin:$PATH" rye sync --dev - name: Lint with flake8 run: | - export PATH="$HOME/.rye/bin:$PATH" # stop the build if there are Python syntax errors or undefined names rye run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide rye run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest and create report run: | - export PATH="$HOME/.rye/bin:$PATH" rye run coverage run -m pytest - name: "Upload coverage to Codecov" uses: codecov/codecov-action@v1