Added example for the attack #595
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: integration tests | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - .pre-commit-config.yaml | |
| - .github/workflows/code_checks.yml | |
| - .github/workflows/docs_build.yml | |
| - .github/workflows/docs_deploy.yml | |
| - .github/workflows/unit_tests.yml | |
| - .github/workflows/integration_tests.yml | |
| - '**.py' | |
| - '**.ipynb' | |
| - uv.lock | |
| - pyproject.toml | |
| - '**.rst' | |
| - '**.md' | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - .pre-commit-config.yaml | |
| - .github/workflows/code_checks.yml | |
| - .github/workflows/docs_build.yml | |
| - .github/workflows/docs_deploy.yml | |
| - .github/workflows/unit_tests.yml | |
| - .github/workflows/integration_tests.yml | |
| - '**.py' | |
| - '**.ipynb' | |
| - uv.lock | |
| - pyproject.toml | |
| - '**.rst' | |
| - '**.md' | |
| jobs: | |
| integration-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/[email protected] | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a | |
| with: | |
| # Install a specific version of uv. | |
| version: "0.5.21" | |
| enable-cache: true | |
| - name: "Set up Python" | |
| uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 | |
| with: | |
| python-version-file: ".python-version" | |
| - name: Install the project | |
| run: uv sync --all-extras --dev | |
| - name: Is running on CI environment (GitHub Actions)? | |
| run: | | |
| python -c "import os; print('Result: ', os.getenv('GITHUB_ACTIONS', 'Not set'))" | |
| - name: Install dependencies and check code | |
| run: | | |
| uv run pytest -m "integration_test" --log-cli-level=WARNING |