update matrix versions #213
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: Linters & Tests | |
| on: | |
| push: | |
| # branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| workflow_call: | |
| inputs: | |
| package_name: | |
| required: true | |
| type: string | |
| requirements: | |
| type: string | |
| workflow_dispatch: | |
| jobs: | |
| env0: # the default environment config, when workflow isn't reused. | |
| if: ${{ github.event_name != 'workflow_call' }} | |
| uses: ./.github/workflows/env0.yml | |
| execute: | |
| name: Check Code & Run Tests | |
| needs: env0 | |
| env: | |
| PKG_NAME: ${{ inputs.package_name || needs.env0.outputs.package_name }} | |
| PKG_REQS: ${{ inputs.requirements || needs.env0.outputs.requirements }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # TODO: Enable Windows and macos | |
| # https://jira.eng.vmware.com/browse/MONIT-30833 | |
| os: [ubuntu-latest] # , macos-latest, windows-latest] | |
| # Please make sure the versions here match the matrix in setup.py | |
| python_version: ['3.10', '3.11', '3.12', '3.13'] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: wavefrontHQ/wavefront-sdk-python/.github/actions/lint_n_test@master | |
| with: | |
| python_version: ${{ matrix.python_version }} | |
| input_pkg_name: ${{ env.PKG_NAME }} | |
| extra_packages: ${{ env.PKG_REQS }} |