Skip to content

Commit

Permalink
ci: use MLDataDevices in LuxTestUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Nov 13, 2024
1 parent 84da678 commit 78c468b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
14 changes: 12 additions & 2 deletions .buildkite/testing_luxtestutils.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,22 @@ steps:
codecov: true
dirs:
- lib/LuxTestUtils/src
- lib/MLDataDevices/src
- lib/MLDataDevices/ext
command: |
julia --color=yes --code-coverage=user --depwarn=yes --project=lib/LuxTestUtils -e '
import Pkg;
Pkg.Registry.update();
Pkg.instantiate();
Pkg.test(; coverage="user")'
dev_pkgs = Pkg.PackageSpec[];
for pkg in ("lib/MLDataDevices",)
push!(dev_pkgs, Pkg.PackageSpec(path=pkg));
end;
Pkg.develop(dev_pkgs);
Pkg.instantiate()'
julia --color=yes --code-coverage=user --depwarn=yes --project=lib/LuxTestUtils/test -e '
import Pkg, LuxTestUtils
dir = dirname(pathof(LuxTestUtils))
include(joinpath(dir, "../test/runtests.jl"))'
agents:
queue: "juliagpu"
cuda: "*"
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/CI_LuxTestUtils.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,18 @@ jobs:
- name: "Install Dependencies and Run Tests"
run: |
import Pkg
dev_pkgs = Pkg.PackageSpec[]
for pkg in ("lib/MLDataDevices",)
push!(dev_pkgs, Pkg.PackageSpec(path=pkg))
end
Pkg.develop(dev_pkgs)
Pkg.Registry.update()
Pkg.instantiate()
Pkg.test(; coverage="user")
shell: julia --color=yes --code-coverage=user --depwarn=yes --project=lib/LuxTestUtils {0}
- uses: julia-actions/julia-processcoverage@v1
with:
directories: lib/LuxTestUtils/src
directories: lib/LuxTestUtils/src,lib/MLDataDevices/src,lib/MLDataDevices/ext
- uses: codecov/codecov-action@v4
with:
files: lcov.info
Expand All @@ -75,6 +80,11 @@ jobs:
- name: "Install Dependencies and Run Tests"
run: |
import Pkg
dev_pkgs = Pkg.PackageSpec[]
for pkg in ("lib/MLDataDevices",)
push!(dev_pkgs, Pkg.PackageSpec(path=pkg))
end
Pkg.develop(dev_pkgs)
Pkg.Registry.update()
Pkg.instantiate()
Pkg.test(; coverage="user")
Expand Down

0 comments on commit 78c468b

Please sign in to comment.