Skip to content
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

Add Github actions CI for tests #1

Open
wants to merge 108 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
c7e89d9
add Github action CI
danielfrg Nov 8, 2024
6172407
remove runtime on GH Actions
danielfrg Nov 8, 2024
7045eda
remove runtime on GH Actions
danielfrg Nov 8, 2024
095ebd8
Fix types
danielfrg Nov 8, 2024
751029d
fix unbound var
danielfrg Nov 8, 2024
38afefc
fix unbound var
danielfrg Nov 8, 2024
289b518
fix types
danielfrg Nov 8, 2024
5af42f8
Add concurrency
danielfrg Nov 8, 2024
dc844a8
fix types
danielfrg Nov 8, 2024
cebecbf
fix types
danielfrg Nov 8, 2024
1e3431b
ignore typechecks
danielfrg Nov 8, 2024
39950b7
Add print of driver
danielfrg Nov 8, 2024
c1f2243
Add print of driver
danielfrg Nov 8, 2024
da2b91f
update driver script
danielfrg Nov 8, 2024
1a751b5
test
danielfrg Nov 8, 2024
6fece36
install cuda-drivers
danielfrg Nov 8, 2024
be6bf05
install cuda-drivers
danielfrg Nov 8, 2024
8457bf9
ignore stuff
danielfrg Nov 8, 2024
884b49b
sudo
danielfrg Nov 8, 2024
e7c8747
add container toolkit and --gpus flag
danielfrg Nov 8, 2024
8d4a326
add container toolkit and --gpus flag
danielfrg Nov 8, 2024
a7e2873
add container toolkit and --gpus flag
danielfrg Nov 8, 2024
f218f90
add container toolkit and --gpus flag
danielfrg Nov 8, 2024
13cdd73
add container toolkit and --gpus flag
danielfrg Nov 8, 2024
a83c6d3
add container toolkit and --gpus flag
danielfrg Nov 8, 2024
ce254e2
add container toolkit and --gpus flag
danielfrg Nov 8, 2024
71f9c81
add container toolkit and --gpus flag
danielfrg Nov 8, 2024
913332b
add container toolkit and --gpus flag
danielfrg Nov 8, 2024
e4f02de
add container toolkit and --gpus flag
danielfrg Nov 8, 2024
49ae877
add container toolkit and --gpus flag
danielfrg Nov 8, 2024
e557540
add container toolkit and --gpus flag
danielfrg Nov 8, 2024
9e38cd6
run all tests
danielfrg Nov 8, 2024
e3f77eb
run only core tests
danielfrg Nov 10, 2024
a9b6408
run only core tests
danielfrg Nov 10, 2024
6bb2cf0
Run all mini tests for linux
danielfrg Nov 12, 2024
c6a55b3
fail fast false
danielfrg Nov 12, 2024
ad34d3f
fail fast false
danielfrg Nov 12, 2024
40214b3
remove cuda-python test (fails)
danielfrg Nov 12, 2024
605854f
Add extra vars
danielfrg Nov 13, 2024
4daebe0
Add extra vars
danielfrg Nov 13, 2024
14db2e3
Add extra vars
danielfrg Nov 13, 2024
a597df8
Add cache logic
danielfrg Nov 13, 2024
c2e49d2
test :)
danielfrg Nov 13, 2024
788bf65
fix dir
danielfrg Nov 13, 2024
86edb0e
Merge branch 'main' into gha-ci
danielfrg Nov 14, 2024
8cae992
Merge branch 'main' into gha-ci
danielfrg Nov 15, 2024
e7ecd5a
Remove cuda-example (multigpu)
danielfrg Nov 15, 2024
0bfff76
Start windows
danielfrg Nov 15, 2024
bf31a8e
Comment cache pull
danielfrg Nov 15, 2024
6b395d2
Install deps
danielfrg Nov 15, 2024
8a74550
Install deps
danielfrg Nov 15, 2024
340ca9d
Install deps
danielfrg Nov 15, 2024
3cd4345
Install deps
danielfrg Nov 15, 2024
7ecba54
Install deps
danielfrg Nov 15, 2024
c37329b
Install deps
danielfrg Nov 15, 2024
464274e
comment ZLIB install
danielfrg Nov 18, 2024
084f9f4
run only core tests
danielfrg Nov 18, 2024
5d5b284
run only core tests
danielfrg Nov 18, 2024
47155a8
run only core tests
danielfrg Nov 18, 2024
e8b0fb8
try to output pytest to logs
danielfrg Nov 18, 2024
b56226d
switch back to linux with a reduced test matrix to play with GHA cache
leofang Nov 23, 2024
a40afe5
compress cache dir to a single tarball and manually restore/save
leofang Nov 23, 2024
6a6b06b
runner context cannot be referenced outside of steps; fix/simplify ca…
leofang Nov 23, 2024
325945a
make CACHE_DIR visible to run.sh
leofang Nov 23, 2024
e7d8f6f
Fix CACHE_ARCHIVE unset
leofang Nov 23, 2024
f22ef3f
move cache dir to runner folder; speed up debugging
leofang Nov 23, 2024
82f4a32
clean up env and other hacks
leofang Nov 23, 2024
6a33ce6
Daniel is right that we need a finer control over cache
leofang Nov 23, 2024
31233d5
apply a WAR for overwriting (global) cache
leofang Nov 23, 2024
bffb7c5
fix syntax error
leofang Nov 23, 2024
9a41afb
1 -> true
leofang Nov 23, 2024
23595da
GITHUB_ENV -> GITHUB_OUTPUT
leofang Nov 23, 2024
f8e9715
move always into the if expression
leofang Nov 23, 2024
cc4c11a
try single quotes
leofang Nov 23, 2024
d60fbe0
set GH_TOKEN
leofang Nov 23, 2024
30b7540
try to install gh in GHA
leofang Nov 23, 2024
6e59e6c
add GH_REPO
leofang Nov 23, 2024
b02d310
add permissions
leofang Nov 23, 2024
0da166a
move permissions to top-level
leofang Nov 23, 2024
8b69d3d
check if cache exists before deletion
leofang Nov 23, 2024
b46c1c2
restore & run!
leofang Nov 23, 2024
39a43e6
Move apt install to earlier
leofang Nov 23, 2024
55d5dee
further shrink test size for debugging & print all metadata
leofang Nov 23, 2024
f44a81a
change cache file owner to CI runner
leofang Nov 23, 2024
b4fec59
fix wildcard usage
leofang Nov 23, 2024
8d6a9bd
fix pwd of test collection
leofang Nov 23, 2024
c8e05a4
try to exclude __init__.py
leofang Nov 23, 2024
3569112
don't try to be smart... stupid way works better :(
leofang Nov 24, 2024
07f2570
switch to test windows caching
leofang Nov 24, 2024
475dc67
escape
leofang Nov 24, 2024
3be46f4
fix windows env var syntax
leofang Nov 24, 2024
045ad7d
more env var syntax fix
leofang Nov 24, 2024
2d6180c
install gh; generate a dummy file for testing
leofang Nov 24, 2024
5258605
fix url
leofang Nov 24, 2024
afc00e5
debug
leofang Nov 24, 2024
4964e4e
enable long path before checking out; remove /q
leofang Nov 24, 2024
94a4893
update path manually
leofang Nov 24, 2024
47070a5
create CUPY_CACHE_DIR if not exist
leofang Nov 24, 2024
5a3c1b3
try to make PATH changes persist across steps to find gh
leofang Nov 24, 2024
681654b
overwrite dummy file
leofang Nov 24, 2024
97a8bba
refactor the test script into stages and remove redundant functions
leofang Nov 24, 2024
69c6bb1
use py312/cu114 for now; add MSVC version detect
leofang Nov 24, 2024
b748b98
fix cl.exe lookup (without initializing vcvars)
leofang Nov 24, 2024
d1c1294
Try to fix symlinks in the workflow
leofang Nov 24, 2024
bd8be7c
Update windows.yml
leofang Nov 24, 2024
1e0896a
improve gh path handling; fix cl version check; fix pytest_tests; fix…
leofang Nov 25, 2024
3fe9316
restore test.ps1
leofang Nov 25, 2024
603fa5a
fix wildcard not expanded
leofang Nov 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fail fast false
  • Loading branch information
danielfrg committed Nov 12, 2024
commit ad34d3fed3619761cfb0fa01f3d61151a100b3ab
12 changes: 11 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ jobs:

strategy:
matrix:
target: ["cuda-example", "cuda11x-cuda-python", "cuda11x-cuda-python", "cuda112", "cuda118", "cuda118.multi", "cuda120", "cuda120.multi", "cuda126", "cuda126.multi"]
target: ["cuda-example", "cuda11x-cuda-python", "cuda11x-cuda-python", "cuda112", "cuda118", "cuda120", "cuda126"]
fail-fast: false

env:
CUPY_CACHE_DIR: ~/.cupy/kernel_cache

steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -32,6 +35,13 @@ jobs:
echo "nvidia-smi:"
nvidia-smi

- name: Cache CuPy kernels
uses: actions/cache@v4
with:
path: ~/.cupy/kernel_cache
key: ${{ runner.os }}-cupy-cache
restore-keys: |
${{ runner.os }}-cupy-cache

- name: Update driver
run: |
Expand Down
Loading