Skip to content

Commit

Permalink
Add a CI action for automated testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Sagnac committed Mar 5, 2024
1 parent 168a5c5 commit 668570f
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 4 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion src/Zernike.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 668570f

Please sign in to comment.