-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4360355
commit b06cbcc
Showing
12 changed files
with
319 additions
and
263 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,52 @@ | ||
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.37.0 | ||
cache: true | ||
|
||
- name: Test package | ||
run: pixi run 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
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.