-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add downstream tests for altair + scikit-lego (#533)
* ci: add downstream test * fixup * fixup * add sklego * add sklego * add sklego * faster sklego tests
- Loading branch information
1 parent
a98ef54
commit 616076e
Showing
1 changed file
with
89 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,89 @@ | ||
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: install-narwhals-dev | ||
run: | | ||
pip uninstall narwhals -y | ||
pip install -e . | ||
- name: show-deps | ||
run: pip freeze | ||
- name: Run pytest | ||
run: | | ||
cd altair | ||
pytest tests | ||
- name: Run mypy | ||
run: | | ||
cd altair | ||
mypy altair tests | ||
scikit-lego: | ||
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-scikit-lego | ||
run: git clone https://github.com/koaning/scikit-lego.git | ||
- name: install-basics | ||
run: python -m pip install --upgrade tox virtualenv setuptools pip | ||
- name: install-scikit-lego-dev | ||
run: | | ||
cd scikit-lego | ||
pip install -e ".[dev, test]" | ||
- name: install-narwhals-dev | ||
run: | | ||
pip uninstall narwhals -y | ||
pip install -e . | ||
- name: show-deps | ||
run: pip freeze | ||
- name: Run pytest | ||
run: | | ||
cd scikit-lego | ||
pytest -n auto --disable-warnings --cov=sklego -m "not cvxpy and not formulaic and not umap" |