Commit initial changes to upload path #303
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: Tests | |
| on: push | |
| jobs: | |
| tests: | |
| name: Tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.10', '3.11', '3.12', '3.13'] | |
| steps: | |
| - name: Checkout repository | |
| id: checkout | |
| uses: actions/checkout@v5 | |
| - name: Common steps | |
| id: common | |
| uses: ghga-de/[email protected] | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install tox plugin | |
| id: install-tox-gh-actions | |
| run: | | |
| pip install --disable-pip-version-check "tox-gh-actions>=3.3,<4" | |
| - name: Run tests with Python ${{ matrix.python-version }} | |
| id: pytest | |
| if: ${{ matrix.python-version != '3.13' }} | |
| run: | | |
| export ${{ steps.common.outputs.CONFIG_YAML_ENV_VAR_NAME }}="${{ steps.common.outputs.CONFIG_YAML }}" | |
| tox | |
| - name: Run tests with Python ${{ matrix.python-version }} measuring coverage | |
| id: pytest-coverage | |
| if: ${{ matrix.python-version == '3.13' }} | |
| run: | | |
| export ${{ steps.common.outputs.CONFIG_YAML_ENV_VAR_NAME }}="${{ steps.common.outputs.CONFIG_YAML }}" | |
| tox -- --cov="${{ steps.common.outputs.PACKAGE_NAME }}" --cov-report=xml | |
| - name: Upload coverage to coveralls | |
| id: coveralls | |
| if: ${{ matrix.python-version == '3.13' }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| pip install --upgrade coveralls | |
| coveralls --service=github |