Merge branch 'master' into 139/matching-svc-testing #52
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: (Question History Svc) Unit Testing with pytest | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| paths: | |
| - 'qns-hist-svc/**' | |
| push: | |
| paths: | |
| - 'qns-hist-svc/**' | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: [self-hosted, linux] | |
| strategy: | |
| matrix: | |
| python-version: | |
| - "3.13" | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install uv and set the Python versions ${{ matrix.python-version }} | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: (QHS) Run uv sync to install dependencies | |
| working-directory: ./qns-hist-svc | |
| run: uv sync --locked --all-extras --dev | |
| - name: (QHS) Setup environment | |
| working-directory: ./qns-hist-svc | |
| run: cp .env.template .env | |
| - name: (QHS) Run pytest | |
| working-directory: ./qns-hist-svc | |
| run: uv run pytest --cov-branch --cov-report=xml | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| working-directory: ./qns-hist-svc | |
| flags: qns-hist-svc | |