Update .gitea/workflows/julia-test.yml
Some checks failed
CI Demo / build (push) Successful in 4s
Docker Test / docker-ops (push) Successful in 5s
.NET Test / dotnet-test (push) Failing after 17s
Go Test / go-test (push) Failing after 5s
Java Test / java-hello (push) Successful in 28s
Julia Test / julia-test (push) Successful in 18s
Kotlin Test / kotlin-hello (push) Successful in 35s
Node.js Test / nodejs-test (push) Failing after 5s
Notebook Test / nb-test (push) Failing after 8s
PHP Test / php-test (push) Has been cancelled
Python Test / python-hello (push) Has been cancelled
R Test / r-cmdcheck (push) Has been cancelled
Rust Test / rust-test (push) Has been cancelled
Scala Test / scala-test (push) Has been cancelled
Swift Test / swift-hello (push) Has been cancelled
Some checks failed
CI Demo / build (push) Successful in 4s
Docker Test / docker-ops (push) Successful in 5s
.NET Test / dotnet-test (push) Failing after 17s
Go Test / go-test (push) Failing after 5s
Java Test / java-hello (push) Successful in 28s
Julia Test / julia-test (push) Successful in 18s
Kotlin Test / kotlin-hello (push) Successful in 35s
Node.js Test / nodejs-test (push) Failing after 5s
Notebook Test / nb-test (push) Failing after 8s
PHP Test / php-test (push) Has been cancelled
Python Test / python-hello (push) Has been cancelled
R Test / r-cmdcheck (push) Has been cancelled
Rust Test / rust-test (push) Has been cancelled
Scala Test / scala-test (push) Has been cancelled
Swift Test / swift-hello (push) Has been cancelled
This commit is contained in:
@@ -26,23 +26,17 @@ jobs:
|
||||
run: |
|
||||
set -euo pipefail
|
||||
if [ -f Project.toml ]; then
|
||||
# Activate the repo project and run its tests
|
||||
julia -e 'using Pkg; Pkg.activate("."); Pkg.test()'
|
||||
else
|
||||
# Create a tiny project + test so the job still proves the runner works
|
||||
mkdir -p test
|
||||
cat > Project.toml <<'EOF'
|
||||
name = "HelloCI"
|
||||
uuid = "f0f9c0b0-0000-4e00-9000-000000000001"
|
||||
version = "0.1.0"
|
||||
|
||||
[deps]
|
||||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
|
||||
EOF
|
||||
cat > test/runtests.jl <<'EOF'
|
||||
using Test
|
||||
@test 2 + 2 == 4
|
||||
println("Hello, Julia!")
|
||||
EOF
|
||||
printf '%s\n' \
|
||||
'name = "HelloCI"' \
|
||||
'uuid = "f0f9c0b0-0000-4e00-9000-000000000001"' \
|
||||
'version = "0.1.0"' '' '[deps]' \
|
||||
'Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"' > Project.toml
|
||||
printf '%s\n' \
|
||||
'using Test' \
|
||||
'@test 2 + 2 == 4' \
|
||||
'println("Hello, Julia!")' > test/runtests.jl
|
||||
julia -e 'using Pkg; Pkg.activate("."); Pkg.test()'
|
||||
fi
|
||||
fi
|
||||
|
Reference in New Issue
Block a user