From 641100d3d84f3f86518d2132f62f0598636ae7c0 Mon Sep 17 00:00:00 2001 From: ajnebro Date: Wed, 27 Nov 2024 16:11:39 +0100 Subject: [PATCH] Fix a bug in runtests.jl --- .github/workflows/build.yml | 27 +++++++++++++++------------ .github/workflows/build2.yml | 21 --------------------- .github/workflows/unitTest2.yml | 2 +- test/runtests.jl | 2 +- 4 files changed, 17 insertions(+), 35 deletions(-) delete mode 100644 .github/workflows/build2.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e6e2ba9..349ce88 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,17 +2,20 @@ name: Build on: [push, pull_request] jobs: - test: - runs-on: ${{ matrix.os }} - strategy: - matrix: - julia-version: ['1.10'] - julia-arch: [x64] - os: [ubuntu-latest] - + build: + runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v2 - - uses: julia-actions/setup-julia@latest + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Julia + uses: julia-actions/setup-julia@v1 with: - version: ${{ matrix.julia-version }} - - uses: julia-actions/julia-buildpkg@latest + version: '1.10' + + - name: Install dependencies + run: julia --project=. -e 'using Pkg; Pkg.instantiate()' + + - name: Build package + run: julia --project=. -e 'using Pkg; Pkg.build()' \ No newline at end of file diff --git a/.github/workflows/build2.yml b/.github/workflows/build2.yml deleted file mode 100644 index 349ce88..0000000 --- a/.github/workflows/build2.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Build -on: [push, pull_request] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Set up Julia - uses: julia-actions/setup-julia@v1 - with: - version: '1.10' - - - name: Install dependencies - run: julia --project=. -e 'using Pkg; Pkg.instantiate()' - - - name: Build package - run: julia --project=. -e 'using Pkg; Pkg.build()' \ No newline at end of file diff --git a/.github/workflows/unitTest2.yml b/.github/workflows/unitTest2.yml index 60e124d..42333a2 100644 --- a/.github/workflows/unitTest2.yml +++ b/.github/workflows/unitTest2.yml @@ -1,4 +1,4 @@ -name: Test +name: Test2 on: [push, pull_request] jobs: diff --git a/test/runtests.jl b/test/runtests.jl index 2c5a3eb..d93c0d6 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,7 +1,7 @@ using MetaJul using Test -tsp_data_dir = joinpath(@__DIR__, "../..", "resources/tspDataFiles") +tsp_data_dir = joinpath(@__DIR__, "..", "resources/tspDataFiles") # Utility functions