From cac8393a7f2a310d4042812580c27e449373a6cc Mon Sep 17 00:00:00 2001 From: jw2249a Date: Sun, 7 Jan 2024 22:20:11 +0000 Subject: [PATCH] adding github actions for testing --- .github/workflows/test.yml | 28 ++++++++++++++++++++++++++++ Project.toml | 1 + {src/test => test}/runtests.jl | 3 ++- 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test.yml rename {src/test => test}/runtests.jl (83%) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..5bf647a --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: Run tests + +on: + push: + branches: + - master + - main + pull_request: + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + julia-version: ['1.0', 'nightly'] + julia-arch: [x64] + os: [ubuntu-latest] + + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.julia-version }} + arch: ${{ matrix.julia-arch }} + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 + # with: + # annotate: true \ No newline at end of file diff --git a/Project.toml b/Project.toml index 4f41a44..6d92575 100644 --- a/Project.toml +++ b/Project.toml @@ -10,3 +10,4 @@ DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f" PooledArrays = "2dfb63ee-cc39-5dd5-95bd-886bf059d720" StringDistances = "88034a9c-02f8-509d-84a9-84ec65e18404" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" diff --git a/src/test/runtests.jl b/test/runtests.jl similarity index 83% rename from src/test/runtests.jl rename to test/runtests.jl index 04722d1..c001aea 100644 --- a/src/test/runtests.jl +++ b/test/runtests.jl @@ -1,5 +1,6 @@ + using FastLink -using Tests +using Test @testset "FastLink.jl" begin 1 === 1