-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(CI_Pipeline): resolve dependency issues causing build failures #1508
Merged
Merged
Changes from 7 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3e6df5f
fix: ci pipeline issue with dependencies
ArslanSaleem b470344
fix(format): ruff errors fixed
ArslanSaleem 972ccd1
fix: test case for refactory of enforce privacy
ArslanSaleem 170c0f9
fix: poetry lock file as well
ArslanSaleem 6d5ddfa
clean up instance memory github
ArslanSaleem 71c94a5
fix(CI): split ci into core and exntensions
ArslanSaleem 4669f39
fix: extensions ci
ArslanSaleem 098d685
fix: space issue
ArslanSaleem 234c053
fix: remove env
ArslanSaleem File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,79 @@ | ||
name: ci-core | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
|
||
jobs: | ||
core-tests: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macOS-latest] | ||
python-version: ["3.10", "3.11"] | ||
|
||
steps: | ||
- name: Clean up instance space | ||
if: matrix.os != 'windows-latest' | ||
run: | | ||
sudo rm -rf /usr/share/dotnet | ||
sudo rm -rf /opt/ghc | ||
sudo rm -rf "/usr/local/share/boost" | ||
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | ||
df -h | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Poetry (Unix) | ||
if: matrix.os != 'windows-latest' | ||
run: | | ||
curl -sSL https://install.python-poetry.org | python3 - | ||
echo 'export PATH="$HOME/.local/bin:$PATH"' >> $GITHUB_ENV | ||
|
||
- name: Install Poetry (Windows) | ||
if: matrix.os == 'windows-latest' | ||
run: | | ||
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python - | ||
echo "C:\\Users\\runneradmin\\AppData\\Roaming\\Python\\Scripts" >> $env:GITHUB_PATH | ||
|
||
- name: Verify Poetry Installation | ||
run: poetry --version | ||
|
||
- name: Clear Poetry Cache | ||
run: poetry cache clear pypi --all | ||
|
||
- name: Install future | ||
run: pip wheel --use-pep517 "future==0.18.3" | ||
|
||
- name: Install dependencies | ||
run: poetry install --all-extras --with dev --verbose | ||
|
||
- name: Lint with ruff | ||
run: make format_diff | ||
|
||
- name: Spellcheck | ||
run: make spell_check | ||
|
||
- name: Run core tests | ||
run: make test_core | ||
|
||
- name: Run code coverage | ||
continue-on-error: true | ||
run: | | ||
poetry run coverage run --source=pandasai -m pytest tests | ||
poetry run coverage xml | ||
|
||
- name: Report coverage | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./coverage.xml | ||
flags: unittests | ||
name: codecov-umbrella | ||
fail_ci_if_error: false |
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test execution step is missing for enterprise extensions on Windows. Add
poetry run pytest tests/
after installing dependencies.