Try adding more information when logging metrics fails #4
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: Simvue-CLI (Ubuntu) | |
on: | |
push: | |
branches: ["main", "dev"] | |
pull_request: | |
branches: ["main", "dev"] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test_build: | |
name: Test CLI | |
timeout-minutes: 20 | |
runs-on: ["ubuntu-latest"] | |
steps: | |
- name: Retrieve Code | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Install Poetry | |
run: pip install poetry | |
- name: Run Tests | |
run: | | |
export SIMVUE_URL=${{ secrets.SIMVUE_URL }} | |
export SIMVUE_TOKEN=${{ secrets.SIMVUE_TOKEN }} | |
poetry install | |
poetry run pytest -x --cov=simvue_cli --cov-report=term | |