From 4cf47ee1d169a0a30b903736d9a4b86afb084686 Mon Sep 17 00:00:00 2001 From: Simeon Schaub Date: Sat, 14 Aug 2021 17:40:56 +0200 Subject: [PATCH] [Do Not Merge] Run Julia Base Tests This is just to see what the current state here is, since I didn't feel like running this on my Laptop. --- .github/workflows/{CI.yml => BaseTests.yml} | 18 ++++-------------- .github/workflows/Documenter.yml | 18 ------------------ test/juliatests.jl | 6 +++++- 3 files changed, 9 insertions(+), 33 deletions(-) rename .github/workflows/{CI.yml => BaseTests.yml} (74%) delete mode 100644 .github/workflows/Documenter.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/BaseTests.yml similarity index 74% rename from .github/workflows/CI.yml rename to .github/workflows/BaseTests.yml index 59ebb867..f58b2ee0 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/BaseTests.yml @@ -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 }} @@ -13,13 +9,9 @@ jobs: fail-fast: false matrix: version: - - '1.0' - - '1' - 'nightly' os: - ubuntu-latest - - macOS-latest - - windows-latest arch: - x64 env: @@ -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 diff --git a/.github/workflows/Documenter.yml b/.github/workflows/Documenter.yml deleted file mode 100644 index 8faa2e2c..00000000 --- a/.github/workflows/Documenter.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Documenter -on: - push: - branches: [master] - tags: [v*] - pull_request: - -jobs: - Documenter: - name: Documentation - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: julia-actions/julia-buildpkg@latest - - uses: julia-actions/julia-docdeploy@latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} diff --git a/test/juliatests.jl b/test/juliatests.jl index 6b4bd7e3..40b00df1 100644 --- a/test/juliatests.jl +++ b/test/juliatests.jl @@ -12,7 +12,11 @@ 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" + 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 function test_path(test)