This document provides an overview of the GitHub Actions workflow (.github/workflows/test-external.yaml
) and associated script (ci/test_external.sh
) for running external tests on specified Python libraries, such as Datashader and Holoviews.
The purpose of this workflow is to perform GPU testing on external party dependencies. It involes the following steps:
- Create a Conda environment named
test_external
. - Install external dependencies specified in
ci/utils/external_dependencies.yaml
. - Clone specified Python libraries from their respective GitHub repositories.
- Install test dependencies for each library.
- Run GPU tests on the specified libraries using Pytest.
The workflow is triggered in two ways:
-
Manual Trigger: You can manually trigger the workflow by selecting the "GPU testing for external party dependencies" workflow and providing the following inputs:
external-project
: Specify the project to test (datashader
,holoviews
, orall
).pr_number
: (Optional) If testing a pull request, provide the PR number.
-
Scheduled Trigger: The workflow runs automatically every Sunday evening (Pacific Time) using a cron schedule (
0 0 * * 1
).
The script is responsible for setting up the Conda environment, installing dependencies, cloning specified Python libraries, and running GPU tests. Key steps in the script include:
-
Create Conda Environment: Creates a Conda environment named
test_external
and installs external dependencies fromexternal_dependencies.yaml
. -
Clone Repositories: Clones GitHub repositories of specified Python libraries (
datashader
,holoviews
, or both). -
Install Dependencies: Installs test dependencies for each library using
python -m pip install -e .[tests]
. -
Run Tests: Gathers GPU tests containing the keywords
cudf
and runs them using Pytest. The number of processes is set to 8 by default, but specific tests (test_quadmesh.py
) are run separately.
To manually trigger the workflow and run external tests:
- Navigate to the "Actions" tab in your GitHub repository.
- Select "GPU testing for external party dependencies" workflow.
- Click the "Run workflow" button.
- Provide inputs for
external-project
andpr_number
if needed.
Contributors can use this workflow to test changes in external libraries on the RAPIDS AI ecosystem. When contributing, follow these steps:
- Make changes to the external library code.
- Push the changes to your fork or branch.
- Trigger the workflow manually by selecting the appropriate inputs.
For additional information, refer to the GitHub Actions documentation.