Merge pull request #132 from neptune-ai/pg/fix #221
This file contains 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: Run e2e tests | |
on: | |
schedule: | |
- cron: '0 8 * * *' # Run at 8:00 daily | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: # Don't run e2e tests on PRs that don't modify source code | |
paths: | |
- 'src/**' | |
- 'tests/**' | |
- 'dev_requirements.txt' | |
- 'pyproject.toml' | |
jobs: | |
test: | |
runs-on: arc-runner-set | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r dev_requirements.txt | |
- name: Run tests | |
env: | |
NEPTUNE_WORKSPACE: ${{ secrets.E2E_WORKSPACE }} | |
NEPTUNE_E2E_PROJECT: ${{ secrets.E2E_PROJECT }} | |
NEPTUNE_API_TOKEN: ${{ secrets.E2E_API_TOKEN }} | |
NEPTUNE_E2E_CUSTOM_RUN_ID: ${{ vars.E2E_CUSTOM_RUN_ID }} | |
run: bash .github/scripts/run-e2e-tests.sh | |
- name: Upload test reports | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: test-artifacts | |
path: "./test-results/" | |
- name: Report | |
uses: mikepenz/action-junit-report@v5 | |
if: always() | |
with: | |
report_paths: "./test-results/test-e2e*.xml" | |
update_check: true | |
include_passed: true | |
annotate_notice: true | |
job_name: "e2e tests" |