feat: Add filterType property to work item and work item template APIs models #1306
Workflow file for this run
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, main, '*.x'] | |
| pull_request: | |
| branches: [master, main, '*.x'] | |
| jobs: | |
| build-lint-unit-test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.10', '3.11', '3.12', '3.13', '3.14'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install poetry | |
| run: pipx install poetry | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: "poetry" | |
| - run: poetry install | |
| - run: poetry run poe test | |
| - run: poetry run poe check | |
| - run: poetry run poe lint | |
| - run: poetry run poe types | |
| integration-test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.10', '3.11', '3.12', '3.13', '3.14'] | |
| # Do not run in parallel to limit parallel integration tests stomping on each other | |
| max-parallel: 1 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install poetry | |
| run: pipx install poetry | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: "poetry" | |
| - run: poetry install | |
| - run: > | |
| poetry run pytest | |
| -m integration | |
| --cloud-api-key "${{ secrets.CLOUD_API_KEY }}" | |
| --enterprise-uri "https://test-api.lifecyclesolutions.ni.com" --enterprise-api-key "${{ secrets.ENTERPRISE_API_KEY }}" | |
| release: | |
| runs-on: ubuntu-latest | |
| needs: [build-lint-unit-test, integration-test] | |
| if: > | |
| github.event_name == 'push' && | |
| ( | |
| github.ref == 'refs/heads/master' || | |
| github.ref == 'refs/heads/main' || | |
| ( | |
| startsWith(github.ref, 'refs/heads/') && | |
| endsWith(github.ref, '.x') | |
| ) | |
| ) | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.GH_TOKEN }} | |
| - name: Install poetry | |
| run: pipx install poetry | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.10" | |
| cache: "poetry" | |
| - run: poetry install | |
| - name: Semantic release | |
| run: | | |
| pip install python-semantic-release==10.6.1 | |
| git config --global user.name "github-actions" | |
| git config --global user.email "action@github.com" | |
| semantic-release version | |
| env: | |
| # To generate a new token use the following guide, providing access to the "repo" scope. | |
| # https://docs.github.com/en/enterprise-server@3.4/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token | |
| # Once you update the secret on the repo, ensure you update the master/main protected branch policy | |
| # to allow your user permission to "bypass required pull requests". | |
| GH_TOKEN: ${{secrets.GH_TOKEN}} | |
| - name: Publish package distributions to PyPI using Twine | |
| # Only publish if Semantic release built packages under "dist/"; hashFiles returns '' when no files match the given pattern. | |
| if: hashFiles('dist/*') != '' | |
| run: | | |
| pip install twine==6.1.0 | |
| python -m twine upload dist/* | |
| env: | |
| TWINE_USERNAME: ${{secrets.REPOSITORY_USERNAME}} | |
| TWINE_PASSWORD: ${{secrets.PYPI_PASSWORD}} | |
| - name: Semantic release - Publish package distributions to GitHub Releases | |
| # Only publish if Semantic release built packages under "dist/"; hashFiles returns '' when no files match the given pattern. | |
| if: hashFiles('dist/*') != '' | |
| run: | | |
| # Publish packages to the latest GitHub release reachable from the current branch. | |
| # This is so that releases from maintenance branches (e.g. "1.6.x") don't upload | |
| # packages to the highest-versioned release on the repo (default behavior of | |
| # 'publish' when no tag is passed), which would likely be one that was published | |
| # from master. | |
| RELEASE_TAG="$(git describe --tags --abbrev=0)" | |
| semantic-release publish --tag "$RELEASE_TAG" | |
| env: | |
| # To generate a new token use the following guide, providing access to the "repo" scope. | |
| # https://docs.github.com/en/enterprise-server@3.4/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token | |
| # Once you update the secret on the repo, ensure you update the master/main protected branch policy | |
| # to allow your user permission to "bypass required pull requests". | |
| GH_TOKEN: ${{secrets.GH_TOKEN}} |