From f9a1ed01db8700211111c14ba4febb521ed2152a Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Tue, 30 Jan 2024 11:38:29 +0100 Subject: [PATCH] Test CI --- .github/workflows/test.yml | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..28f3107 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,40 @@ +name: Julia tests + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the main branch +on: + workflow_dispatch: + push: + paths-ignore: + - '**.md' + branches: + - main + pull_request: + paths-ignore: + - '**.md' + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + test: + runs-on: ${{ matrix.os }} + timeout-minutes: 10 + + strategy: + # Without setting this, a failing test cancels all others + fail-fast: false + matrix: + julia-version: ['1.6', '1.10', 'nightly'] # "~1.11.0-0", + os: [ubuntu-latest] + + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + + # Makes thes `julia` command available + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.julia-version }} + - uses: julia-actions/cache@v1 + + # 🚗 + - uses: julia-actions/julia-runtest@v1