Merge pull request #292 from vkottler/dev/5.8.2 #888
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: Python Package | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| env: | |
| TWINE_PASSWORD: ${{secrets.TWINE_PASSWORD}} | |
| GITHUB_API_TOKEN: ${{secrets.API_TOKEN}} | |
| CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}} | |
| jobs: | |
| build: | |
| runs-on: ${{matrix.system}} | |
| strategy: | |
| matrix: | |
| python-version: | |
| - "3.12" | |
| - "3.13" | |
| system: | |
| - ubuntu-latest | |
| - macos-latest | |
| - windows-latest | |
| env: | |
| PYTHON_VERSION: ${{matrix.python-version}} | |
| steps: | |
| - uses: actions/checkout@master | |
| with: | |
| submodules: recursive | |
| - name: python${{matrix.python-version}} setup | |
| uses: actions/setup-python@main | |
| with: | |
| python-version: ${{matrix.python-version}} | |
| cache: pip | |
| - run: pip${{matrix.python-version}} install vmklib>=2.0.3 | |
| # Begin project-specific setup. | |
| - run: mk python-editable | |
| # End project-specific setup. | |
| - run: mk python-sa-types | |
| - name: lint and build | |
| run: mk python-lint python-sa yaml python-build-once | |
| env: | |
| PY_LINT_MYPY_EXTRA_ARGS: --no-incremental | |
| - run: mk docs | |
| if: | | |
| matrix.python-version == '3.12' | |
| && matrix.system == 'ubuntu-latest' | |
| - run: mk python-test | |
| env: | |
| PY_TEST_EXTRA_ARGS: --cov-report=xml | |
| - uses: codecov/[email protected] | |
| with: | |
| fail_ci_if_error: true | |
| verbose: true | |
| token: ${{secrets.CODECOV_TOKEN}} | |
| - run: mk pypi-upload-ci | |
| env: | |
| TWINE_USERNAME: __token__ | |
| if: | | |
| matrix.python-version == '3.12' | |
| && matrix.system == 'ubuntu-latest' | |
| && env.TWINE_PASSWORD != '' | |
| && github.ref_name == 'master' | |
| - run: | | |
| mk python-release owner=vkottler \ | |
| repo=runtimepy version=5.8.2 | |
| if: | | |
| matrix.python-version == '3.12' | |
| && matrix.system == 'ubuntu-latest' | |
| && env.GITHUB_API_TOKEN != '' | |
| && github.ref_name == 'master' |