[cli-tests] Small docstring changes #11
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: CLI Tests | |
| on: | |
| push: | |
| workflow_call: | |
| permissions: | |
| contents: read | |
| actions: read | |
| checks: write | |
| concurrency: | |
| group: cli-tests-${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| run-cli-tests: | |
| name: CLI Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out cli-tests | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 1 | |
| submodules: false | |
| sparse-checkout: | | |
| tools/cli_tests | |
| - name: Install cli-tests dependencies | |
| id: install-cli-test-deps | |
| run: sudo pip install -e ./tools/cli_tests/ --break-system-packages | |
| - name: Install snap | |
| id: install-snap | |
| run: sudo snap install multipass --channel=beta | |
| - name: Run cli-tests | |
| id: run-cli-tests | |
| run: pytest -s tools/cli_tests --remove-all-instances --daemon-controller=snap --junitxml=reports/junit.xml | |
| - name: Report cli-tests results to Github Checks | |
| if: success() || failure() | |
| uses: dorny/test-reporter@v2 | |
| with: | |
| name: CLI Test results (Ubuntu 24.04) | |
| path: reports/junit.xml | |
| reporter: java-junit # understands standard JUnit | |
| fail-on-error: true # fail job if there are test failures |