update eval notebooks to use latest data #1298
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| id-token: write # This is required for requesting the JWT | |
| contents: read # This is required for actions/checkout | |
| jobs: | |
| unit-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: configure aws credentials | |
| uses: aws-actions/configure-aws-credentials@v5 | |
| with: | |
| role-to-assume: arn:aws:iam::631969445205:role/github-action-role | |
| role-session-name: ocr-etl-role-session | |
| aws-region: us-west-2 | |
| - uses: prefix-dev/setup-pixi@v0.9.3 | |
| with: | |
| activate-environment: true | |
| environments: dev | |
| - run: pixi info | |
| - name: List installed libraries/packages | |
| run: | | |
| pixi list --environment dev | |
| - name: Run tests | |
| run: | | |
| pixi run --environment dev tests | |
| - name: Set Codecov env vars | |
| run: | | |
| echo "OS=${{ runner.os }}" >> $GITHUB_ENV | |
| echo "PYTHON=$(pixi run --environment dev python -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')" >> $GITHUB_ENV | |
| - name: Upload code coverage to Codecov | |
| uses: codecov/codecov-action@v5.5.2 | |
| with: | |
| # For public repos the token is not required; uncomment if private: | |
| # token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ./coverage.xml | |
| flags: unit | |
| env_vars: OS,PYTHON | |
| name: codecov-unit | |
| fail_ci_if_error: false | |
| verbose: true | |
| integration-tests: | |
| runs-on: ubuntu-latest | |
| if: | | |
| github.event_name != 'pull_request' || | |
| ( | |
| ( | |
| contains(github.event.pull_request.labels.*.name, 'e2e') | |
| ) || | |
| ( | |
| contains(github.event.pull_request.title, '[e2e]') || | |
| contains(github.event.pull_request.body, '[e2e]') | |
| ) | |
| ) | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: configure aws credentials | |
| uses: aws-actions/configure-aws-credentials@v5 | |
| with: | |
| role-to-assume: arn:aws:iam::631969445205:role/github-action-role | |
| role-session-name: ocr-etl-role-session | |
| aws-region: us-west-2 | |
| - uses: prefix-dev/setup-pixi@v0.9.3 | |
| with: | |
| cache: false # no pixi.lock | |
| locked: false | |
| activate-environment: true | |
| - run: pixi info | |
| - name: List installed libraries/packages | |
| run: | | |
| pixi list -e dev | |
| - name: Running Integration Tests | |
| run: | | |
| pixi run -e dev tests-integration -s | |
| - name: Set Codecov env vars | |
| if: success() # only attempt upload if tests ran | |
| run: | | |
| echo "OS=${{ runner.os }}" >> $GITHUB_ENV | |
| echo "PYTHON=$(pixi run --environment dev python -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')" >> $GITHUB_ENV | |
| - name: Upload code coverage to Codecov (integration) | |
| uses: codecov/codecov-action@v5.5.2 | |
| if: success() | |
| with: | |
| # token: ${{ secrets.CODECOV_TOKEN }} # uncomment if repository is private | |
| files: ./coverage.xml | |
| flags: integration | |
| env_vars: OS,PYTHON | |
| name: codecov-integration | |
| fail_ci_if_error: false # don't fail whole job on coverage upload issues for integration | |
| verbose: true |