|
| 1 | +name: integration tests |
| 2 | +permissions: |
| 3 | + contents: read |
| 4 | + pull-requests: write |
| 5 | + |
| 6 | +on: |
| 7 | + push: |
| 8 | + branches: |
| 9 | + - main |
| 10 | + paths: |
| 11 | + - .pre-commit-config.yaml |
| 12 | + - .github/workflows/code_checks.yml |
| 13 | + - .github/workflows/docs_build.yml |
| 14 | + - .github/workflows/docs_deploy.yml |
| 15 | + - .github/workflows/unit_tests.yml |
| 16 | + - .github/workflows/integration_tests.yml |
| 17 | + - '**.py' |
| 18 | + - '**.ipynb' |
| 19 | + - uv.lock |
| 20 | + - pyproject.toml |
| 21 | + - '**.rst' |
| 22 | + - '**.md' |
| 23 | + pull_request: |
| 24 | + branches: |
| 25 | + - main |
| 26 | + paths: |
| 27 | + - .pre-commit-config.yaml |
| 28 | + - .github/workflows/code_checks.yml |
| 29 | + - .github/workflows/docs_build.yml |
| 30 | + - .github/workflows/docs_deploy.yml |
| 31 | + - .github/workflows/unit_tests.yml |
| 32 | + - .github/workflows/integration_tests.yml |
| 33 | + - '**.py' |
| 34 | + - '**.ipynb' |
| 35 | + - uv.lock |
| 36 | + - pyproject.toml |
| 37 | + - '**.rst' |
| 38 | + - '**.md' |
| 39 | + |
| 40 | +jobs: |
| 41 | + integration-tests: |
| 42 | + runs-on: ubuntu-latest |
| 43 | + steps: |
| 44 | + |
| 45 | + |
| 46 | + - name: Install uv |
| 47 | + uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb |
| 48 | + with: |
| 49 | + # Install a specific version of uv. |
| 50 | + version: "0.5.21" |
| 51 | + enable-cache: true |
| 52 | + |
| 53 | + - name: "Set up Python" |
| 54 | + uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 |
| 55 | + with: |
| 56 | + python-version-file: ".python-version" |
| 57 | + |
| 58 | + - name: Install the project |
| 59 | + run: uv sync --all-extras --dev |
| 60 | + |
| 61 | + - name: Run check code |
| 62 | + run: | |
| 63 | + uv run pytest -m "integration_test" --cov src/aixpert --cov-report=xml tests |
| 64 | +
|
| 65 | + # Uncomment this once this repo is configured on Codecov |
| 66 | + # - name: Upload coverage to Codecov |
| 67 | + # uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 |
| 68 | + # with: |
| 69 | + # token: ${{ secrets.CODECOV_TOKEN }} |
| 70 | + # slug: VectorInstitute/aixpert |
| 71 | + # fail_ci_if_error: true |
| 72 | + # verbose: true |
0 commit comments