From 668570f2913492b9a6b4a4f0519fe8a654807b3e Mon Sep 17 00:00:00 2001 From: Sagnac <83491030+Sagnac@users.noreply.github.com> Date: Mon, 4 Mar 2024 17:31:55 +0000 Subject: [PATCH] Add a CI action for automated testing --- .github/workflows/ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ Project.toml | 6 +++--- src/Zernike.jl | 2 +- 3 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e6253b1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +name: Run test suite + +on: + push: + branches: + tags: + pull_request: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +permissions: + actions: write + contents: read + +jobs: + test: + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} + runs-on: ${{ matrix.os }} + timeout-minutes: 60 + strategy: + matrix: + version: ['1'] + arch: [x64] + os: [ubuntu-20.04] + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.version }} + arch: ${{ matrix.arch }} + - uses: julia-actions/cache@v1 + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 + with: + prefix: xvfb-run -s '-screen 0 1024x768x24' + annotate: true diff --git a/Project.toml b/Project.toml index 66a8f65..0730eca 100644 --- a/Project.toml +++ b/Project.toml @@ -17,8 +17,8 @@ StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91" test = ["Test", "StatsBase"] [compat] -julia = "1.11" -LinearAlgebra = "1.9" -Printf = "1.9" +julia = "1.10" +LinearAlgebra = "1.10" +Printf = "1.10" ShiftedArrays = "2.0.0" GLMakie = "0.9.0" diff --git a/src/Zernike.jl b/src/Zernike.jl index 1e3823e..c4b6048 100644 --- a/src/Zernike.jl +++ b/src/Zernike.jl @@ -12,7 +12,7 @@ export zernike, wavefront, transform, Z, W, P, WavefrontError, noll_to_j, fringe_to_j, standardize, standardize!, Observable, plotconfig, zplot -public metrics, coefficients, transform_coefficients, reconstruct, scale, J +# public metrics, coefficients, transform_coefficients, reconstruct, scale, J using GLMakie import .Makie: latexstring, LaTeXString