Skip to content

Commit

Permalink
ci: enable e2e testing in quality gate new PR
Browse files Browse the repository at this point in the history
  • Loading branch information
hiento09 committed Oct 2, 2024
1 parent 76e7adf commit f6ea8bd
Showing 1 changed file with 36 additions and 6 deletions.
42 changes: 36 additions & 6 deletions .github/workflows/cortex-cpp-quality-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI Quality Gate Cortex CPP

on:
pull_request:
types: [opened, synchronize, reopened]
types: [opened, synchronize, reopened, ready_for_review]
paths:
[
"engine/**",
Expand Down Expand Up @@ -53,11 +53,10 @@ jobs:
with:
submodules: recursive

- name: use python for linux
if: runner.os == 'Linux'
uses: actions/setup-python@v4
- name: use python
uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.10'

- name: Install tools on Linux
if: runner.os == 'Linux'
Expand Down Expand Up @@ -106,7 +105,38 @@ jobs:
run: |
cd engine
make run-unit-tests
- name: Run e2e tests
if: runner.os != 'Windows' && github.event.pull_request.draft == false
run: |
cd engine
cp build/cortex build/cortex-nightly
cp build/cortex build/cortex-beta
python -m pip install --upgrade pip
python -m pip install pytest
python -m pip install requests
python e2e-test/main.py
rm build/cortex-nightly
rm build/cortex-beta
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


- name: Run e2e tests
if: runner.os == 'Windows' && github.event.pull_request.draft == false
run: |
cd engine
cp build/cortex.exe build/cortex-nightly.exe
cp build/cortex.exe build/cortex-beta.exe
python -m pip install --upgrade pip
python -m pip install pytest
python -m pip install requests
python e2e-test/main.py
rm build/cortex-nightly.exe
rm build/cortex-beta.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Pre-package
run: |
cd engine
Expand Down

0 comments on commit f6ea8bd

Please sign in to comment.