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

[Do Not Merge] Run Julia Base Tests #495

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
18 changes: 4 additions & 14 deletions .github/workflows/CI.yml → .github/workflows/BaseTests.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: CI
name: Run Julia Base Tests
on:
pull_request:
push:
branches:
- master
tags: '*'
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
Expand All @@ -13,13 +9,9 @@ jobs:
fail-fast: false
matrix:
version:
- '1.0'
- '1'
- 'nightly'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
env:
Expand All @@ -41,8 +33,6 @@ jobs:
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info
- name: Test Julia Base
run: |
julia --project test/juliatests.jl
18 changes: 0 additions & 18 deletions .github/workflows/Documenter.yml

This file was deleted.

13 changes: 8 additions & 5 deletions test/juliatests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ end

const juliadir = dirname(dirname(Sys.BINDIR))
const testdir = joinpath(juliadir, "test")
if isdir(testdir)
include(joinpath(testdir, "choosetests.jl"))
else
@error "Julia's test/ directory not found, can't run Julia tests"
if !isdir(testdir)
run(`git clone https://github.com/JuliaLang/julia.git`)
cd("julia") do
run(`git checkout $(Base.GIT_VERSION_INFO.commit)`)
run(`cp -r test $testdir`)
end
end
include(joinpath(testdir, "choosetests.jl"))

function test_path(test)
t = split(test, '/')
Expand Down Expand Up @@ -80,7 +83,7 @@ move_to_node1("stress")
move_to_node1("Distributed")

@testset "Julia tests" begin
nworkers = min(Sys.CPU_THREADS, length(tests))
nworkers = 1 #min(Sys.CPU_THREADS, length(tests))
println("Using $nworkers workers")
results = Dict{String,Any}()
tests0 = copy(tests)
Expand Down