Make some changes to commands.rst #512
This file contains hidden or 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: coverage | |
| on: | |
| push: | |
| branches: [ master ] | |
| jobs: | |
| coverage: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: '3.11' | |
| - name: Install nose2 | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install nose2[coverage_plugin] | |
| - name: Run tests with coverage | |
| run: nose2 -C --coverage skoolkit --coverage-report xml | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| fail_ci_if_error: true | |
| files: ./coverage.xml | |
| token: ${{ secrets.CODECOV_TOKEN }} |