-
-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into minor-change
- Loading branch information
Showing
122 changed files
with
4,895 additions
and
7,385 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,11 +103,6 @@ jobs: | |
python-version: ${{ matrix.python-version }} | ||
cache: true | ||
|
||
- name: Set up Pandoc (needed for doc) | ||
uses: r-lib/actions/setup-pandoc@v2 | ||
with: | ||
pandoc-version: '3.1.7' # https://github.com/jgm/pandoc/releases | ||
|
||
- name: Cache Giskard test resources | ||
uses: actions/cache@v3 | ||
if: ${{ github.event_name == 'pull_request' || inputs.use-cache }} | ||
|
@@ -160,22 +155,6 @@ jobs: | |
pdm run pip freeze | grep '^pandas' | ||
pdm run pip freeze | grep -q '^pandas==${{ matrix.pandas_v1 && '1' || '2' }}\.' | ||
- name: Test code (RAM expensive in tests/models, tests/testing, tests/test_metamorphic_invariance.py) | ||
if: ${{ startsWith(matrix.os, 'windows') }} | ||
run: pdm test-ram tests/models tests/testing tests/test_metamorphic_invariance.py | ||
|
||
- name: Test code (RAM expensive, /tests/models and /tests/testing) | ||
if: ${{ !startsWith(matrix.os, 'windows') }} | ||
run: pdm test-ram --memray tests/models tests/testing tests/test_metamorphic_invariance.py | ||
|
||
- name: Test code (RAM expensive, others) | ||
if: ${{ startsWith(matrix.os, 'windows') }} | ||
run: pdm test-ram tests/ --ignore=tests/models --ignore=tests/testing --ignore=tests/test_metamorphic_invariance.py | ||
|
||
- name: Test code (RAM expensive, others) | ||
if: ${{ !startsWith(matrix.os, 'windows') }} | ||
run: pdm test-ram --memray tests/ --ignore=tests/models --ignore=tests/testing --ignore=tests/test_metamorphic_invariance.py | ||
|
||
- name: Test code (concurrency) | ||
run: pdm test-worker | ||
|
||
|
@@ -191,10 +170,6 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
|
||
- name: Build doc | ||
if : ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'}} | ||
run: pdm run doc | ||
|
||
- name: Build | ||
run: pdm build | ||
|
||
|
@@ -208,13 +183,7 @@ jobs: | |
if: ${{ inputs.run-integration-tests }} | ||
env: | ||
PYTEST_XDIST_AUTO_NUM_WORKERS: 2 | ||
run: pdm test-slow tests/integrations | ||
|
||
- name: Run integration tests for python | ||
if: ${{ inputs.run-integration-tests }} | ||
env: | ||
PYTEST_XDIST_AUTO_NUM_WORKERS: 2 | ||
run: pdm test-slow tests/ --ignore=tests/integrations | ||
run: pdm test-slow tests/ | ||
|
||
- name: "Memory csv" | ||
if: ${{ always() && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10' && !matrix.langchain_minimal && !matrix.pandas_v1 && !matrix.pydantic_v1 }} | ||
|
@@ -300,3 +269,31 @@ jobs: | |
sed -i 's/^\(requires-python *= *\).*$/\1">=3.10,<3.12"/' pyproject.toml | ||
pdm add "$(ls ../dist/*.whl)" | ||
pdm run python -c "import giskard" | ||
check-doc: | ||
name: "Build and check doc" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup PDM | ||
uses: pdm-project/setup-pdm@v3 | ||
with: | ||
python-version: "3.10" | ||
cache: true | ||
|
||
- name: Set up Pandoc (needed for doc) | ||
uses: r-lib/actions/setup-pandoc@v2 | ||
with: | ||
pandoc-version: '3.1.7' # https://github.com/jgm/pandoc/releases | ||
|
||
- name: Install dependencies | ||
run: pdm install -G :all | ||
|
||
- name: Build doc | ||
run: pdm doc | ||
|
||
- name: Check doc | ||
run: pdm check-doc |
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 was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
Oops, something went wrong.