-
Notifications
You must be signed in to change notification settings - Fork 119
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
ci: add downstream tests for altair + scikit-lego #533
Merged
Merged
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
1cfe1ce
ci: add downstream test
MarcoGorelli 8ae4170
fixup
MarcoGorelli f79633c
fixup
MarcoGorelli 2c0092c
add sklego
MarcoGorelli c6a621f
add sklego
MarcoGorelli 2ba7187
add sklego
MarcoGorelli c98e6f1
faster sklego tests
MarcoGorelli 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,46 @@ | ||
name: ci | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
altair: | ||
strategy: | ||
matrix: | ||
python-version: ["3.11"] | ||
os: [ubuntu-latest] | ||
|
||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Cache multiple paths | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.cache/pip | ||
$RUNNER_TOOL_CACHE/Python/* | ||
~\AppData\Local\pip\Cache | ||
key: ${{ runner.os }}-build-${{ matrix.python-version }} | ||
- name: clone-altair | ||
run: git clone https://github.com/vega/altair.git | ||
- name: install-basics | ||
run: python -m pip install --upgrade tox virtualenv setuptools pip | ||
- name: install-altair-dev | ||
run: | | ||
cd altair | ||
pip install -e ".[dev, all]" | ||
- name: show-deps | ||
run: pip freeze | ||
- name: Run pytest | ||
run: | | ||
cd altair | ||
pytest tests | ||
- name: Run mypy | ||
run: | | ||
cd altair | ||
mypy altair tests |
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.
Shall we consider to run it it both as workflow dispatch (i.e. manual trigger) and dependency of publish to pypi, instead of every PR?
I am not sure if you intend to add scikit-lego as well, but test suite there typically take between 2 and 5 mins
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.
yeah that might be better
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.
I will take it as a yes π
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.
altair actually takes less than our own tests π I think we might as well keep that on in CI
and for scikit-lego, perhaps some tests these could be marked "slow", and we just skip those here?
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.
Agree! I think it is enough to run everything without extra dependencies as in our scheduled ci
TL;DR