forked from data-apis/array-api-extra
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAINT: depend on array-api-compat (data-apis#47)
* Add dependency to array-api-compat * Code review * revert README
- Loading branch information
1 parent
463ae8d
commit 09dc648
Showing
14 changed files
with
374 additions
and
261 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,55 @@ | ||
name: Test vendoring support | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
# Many color libraries just need this to be set to any value, but at least | ||
# one distinguishes color depth, where "3" -> "256-bit color". | ||
FORCE_COLOR: 3 | ||
|
||
jobs: | ||
pre-commit-and-lint: | ||
name: Format | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout array-api-extra | ||
uses: actions/checkout@v4 | ||
with: | ||
path: array-api-extra | ||
|
||
- name: Checkout array-api-compat | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: data-apis/array-api-compat | ||
path: array-api-compat | ||
|
||
- name: Vendor array-api-extra into test package | ||
run: | | ||
cp -a array-api-compat/array_api_compat array-api-extra/vendor_tests/ | ||
cp -a array-api-extra/src/array_api_extra array-api-extra/vendor_tests/ | ||
- name: Install Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: Install Pixi | ||
uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: v0.39.0 | ||
manifest-path: array-api-extra/pyproject.toml | ||
cache: true | ||
|
||
- name: Test package | ||
run: | | ||
cd array-api-extra/ | ||
pixi run --environment tests tests-vendor |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.