-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bff37e3
commit 394f919
Showing
9 changed files
with
193 additions
and
12 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
- main | ||
|
||
env: | ||
PYTHON_VERSION: "3.11" | ||
PYTHON_VERSION: 3.11 | ||
|
||
jobs: | ||
check-version: | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Integration tests for VizroAI | ||
|
||
defaults: | ||
run: | ||
working-directory: vizro-ai | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: test-integration-${{ github.head_ref }} | ||
|
||
env: | ||
PYTHONUNBUFFERED: 1 | ||
FORCE_COLOR: 1 | ||
|
||
jobs: | ||
test-integration-vizro-ai: | ||
name: test-integration-vizro-ai on Py${{ matrix.python-version }} | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- python-version: 3.9 | ||
hatch-env: all.py3.9 | ||
- python-version: 3.10 | ||
hatch-env: all.py3.10 | ||
- python-version: 3.11 | ||
hatch-env: all.py3.11 | ||
- python-version: 3.11 | ||
hatch-env: lower-bounds | ||
label: lower bounds | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: ${{ github.event_name == 'pull_request' && 2 || 0 }} | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Hatch | ||
run: pip install --upgrade hatch | ||
|
||
- name: Run vizro-ai integration tests with pypi vizro | ||
run: | | ||
export OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }} | ||
export OPENAI_API_BASE=${{ secrets.OPENAI_API_BASE }} | ||
hatch run ${{ matrix.hatch-env }}:test-integration | ||
- name: Run vizro-ai integration tests with local vizro | ||
run: | | ||
export OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }} | ||
export OPENAI_API_BASE=${{ secrets.OPENAI_API_BASE }} | ||
cd ../vizro-core | ||
hatch build | ||
cd ../vizro-ai | ||
hatch run ${{ matrix.hatch-env }}:pip install ../vizro-core/dist/vizro*.tar.gz | ||
hatch run ${{ matrix.hatch-env }}:test-integration |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Integration tests for Vizro | ||
|
||
defaults: | ||
run: | ||
working-directory: vizro-core | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: test-integration-${{ github.head_ref }} | ||
|
||
env: | ||
PYTHONUNBUFFERED: 1 | ||
FORCE_COLOR: 1 | ||
|
||
jobs: | ||
test-integration-vizro-core: | ||
name: test-integration-vizro-core on Py${{ matrix.python-version }} | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- python-version: 3.8 | ||
hatch-env: all.py3.8 | ||
- python-version: 3.9 | ||
hatch-env: all.py3.9 | ||
- python-version: 3.10 | ||
hatch-env: all.py3.10 | ||
- python-version: 3.11 | ||
hatch-env: all.py3.11 | ||
- python-version: 3.11 | ||
hatch-env: lower-bounds | ||
label: lower bounds | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Hatch | ||
run: pip install --upgrade hatch | ||
|
||
- name: List dependencies | ||
run: hatch run ${{ matrix.hatch-env }}:pip freeze | ||
|
||
- name: Run integration tests | ||
run: hatch run ${{ matrix.hatch-env }}:test-integration |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Unit tests for VizroAI | ||
|
||
defaults: | ||
run: | ||
working-directory: vizro-ai | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: test-unit-${{ github.head_ref }} | ||
|
||
env: | ||
PYTHONUNBUFFERED: 1 | ||
FORCE_COLOR: 1 | ||
|
||
jobs: | ||
test-unit-vizro-ai: | ||
name: test-unit-vizro-ai on Py${{ matrix.python-version }} | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- python-version: 3.9 | ||
hatch-env: all.py3.9 | ||
- python-version: 3.10 | ||
hatch-env: all.py3.10 | ||
- python-version: 3.11 | ||
hatch-env: all.py3.11 | ||
- python-version: 3.11 | ||
hatch-env: lower-bounds | ||
label: lower bounds | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Hatch | ||
run: pip install --upgrade hatch | ||
|
||
- name: List dependencies | ||
run: hatch run ${{ matrix.hatch-env }}:pip freeze | ||
|
||
- name: Run unit tests | ||
run: hatch run ${{ matrix.hatch-env }}:test-unit-coverage |
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