Skip to content

Commit

Permalink
try build in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierlabayle committed Dec 21, 2023
1 parent 695e661 commit 12ba044
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- name: Build App
run: julia --project -t auto deps/build_app.jl app tarball
run: julia --project --startup-file=no deps/build_app.jl
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v2
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ deps/build.log
deps/downloads/
deps/usr/
deps/src/
tmle/

# Build artifacts for creating documentation generated by the Documenter package
docs/build/
Expand Down
20 changes: 0 additions & 20 deletions Comonicon.toml

This file was deleted.

2 changes: 2 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@ MLJXGBoostInterface = "54119dfa-1dab-4055-a167-80440f4f7a91"
Mmap = "a63ad114-7e13-5084-954f-fe012c677804"
MultipleTesting = "f8716d33-7c4a-5097-896f-ce0ecbd3ef6b"
Optim = "429524aa-4258-5aef-a3af-852621145aeb"
PackageCompiler = "9b87118b-4619-50d2-8e1e-99f35a4d4d9d"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
TMLE = "8afdd2fb-6e73-43df-8b62-b1650cd9c8cf"
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
YAML = "ddb6d928-2868-570f-bddf-ab3f9cf99eb6"

[compat]
PackageCompiler = "2.1.16"
ArgParse = "1.1.4"
Arrow = "2.5.2"
CSV = "0.10"
Expand Down
3 changes: 2 additions & 1 deletion deps/build_app.jl
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
using TargetedEstimation; TargetedEstimation.comonicon_install()
using PackageCompiler
PackageCompiler.create_app(".", "tmle", precompile_execution_file="execute.jl")
7 changes: 0 additions & 7 deletions deps/execute.jl
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
using TargetedEstimation

@info "Running precompilation script."

# Run help messages
TargetedEstimation.command_main(["-h"])
TargetedEstimation.command_main(["tmle", "-h"])
TargetedEstimation.command_main(["make-summary", "-h"])
TargetedEstimation.command_main(["sieve-variance-plateau", "-h"])

# Run workload
TEST_DIR = joinpath(pkgdir(TargetedEstimation), "test")
push!(LOAD_PATH, TEST_DIR)
Expand Down
5 changes: 1 addition & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,5 @@ RUN julia --project -e'using Pkg; Pkg.instantiate(); Pkg.resolve(); Pkg.precompi
# Build CLI
RUN julia --project --startup-file=no deps/build_app.jl

# Add CLI to PATH
ENV PATH="${PATH}:/opt/bin/"

# Test the CLI runs
RUN tmle tmle data/sample_dataset.csv
RUN tmle/bin/tmle tmle data/sample_dataset.csv

0 comments on commit 12ba044

Please sign in to comment.