fix: upgrade workspace status condition correctly #1684
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: RAGEngine Unit Tests | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: [main] | |
| paths-ignore: ["docs/**", "**.md", "**.mdx", "**.png", "**.jpg"] | |
| pull_request: | |
| branches: [main, release-**] | |
| paths-ignore: ["docs/**", "**.md", "**.mdx", "**.png", "**.jpg"] | |
| permissions: | |
| contents: read | |
| packages: write | |
| env: | |
| GO_VERSION: "1.24" | |
| jobs: | |
| unit-tests: | |
| runs-on: ubuntu-latest | |
| environment: unit-tests | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 | |
| with: | |
| egress-policy: audit | |
| disable-sudo: true | |
| disable-telemetry: true | |
| - name: Check out the code | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| submodules: true | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | |
| with: | |
| python-version: '3.12' | |
| cache: pip | |
| - name: Run unit tests | |
| run: | | |
| make rag-service-test | |
| - name: Upload Coverage to Codecov | |
| uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1 | |
| with: | |
| verbose: true | |
| token: ${{ secrets.CODECOV_TOKEN }} |