From 8f62b1dbc988f90a48dc74cfc0dcad2a7b9ccd96 Mon Sep 17 00:00:00 2001 From: David Anthoff Date: Wed, 27 Nov 2019 16:26:42 -0800 Subject: [PATCH] Move dependency tests to separate workflow --- .github/workflows/dependencytest-workflow.yml | 33 +++++++++++++++++++ test/runtests.jl | 4 --- 2 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/dependencytest-workflow.yml diff --git a/.github/workflows/dependencytest-workflow.yml b/.github/workflows/dependencytest-workflow.yml new file mode 100644 index 000000000..6a966c0a6 --- /dev/null +++ b/.github/workflows/dependencytest-workflow.yml @@ -0,0 +1,33 @@ +name: Run model tests + +on: + push: + branches: + - master + schedule: + - cron: '0 23 * * *' + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + julia-version: [1.2, 1.3] + julia-arch: [x64, x86] + os: [ubuntu-latest, windows-latest, macOS-latest] + exclude: + - os: macOS-latest + julia-arch: x86 + + steps: + - uses: actions/checkout@v1.0.0 + - uses: julia-actions/setup-julia@latest + with: + version: ${{ matrix.julia-version }} + - uses: julia-actions/julia-buildpkg@latest + env: + PYTHON: "" + - name: Run dependency tests + run: julia test/dependencies/run_dependency_tests.jl + env: + PYTHON: "" diff --git a/test/runtests.jl b/test/runtests.jl index 9ae70302f..e2b5f805b 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -112,8 +112,4 @@ Electron.prep_test_env() @info("doctests") doctest(Mimi) - - if haskey(ENV, "GITHUB_ACTIONS") && ENV["GITHUB_ACTIONS"] == "true" - run(`$(Base.julia_cmd()) --startup-file=no --project=$(joinpath(@__DIR__, "dependencies", ".")) $(joinpath(@__DIR__, "dependencies", "run_dependency_tests.jl"))`) - end end