From 955342b12f7ad22c50fcbb70bf9c1d270916ed6e Mon Sep 17 00:00:00 2001 From: jkosata Date: Wed, 23 Aug 2023 19:20:55 +0200 Subject: [PATCH] test pipeline --- .github/workflows/test.yml | 33 +++++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 35 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..ab06a6e --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,33 @@ +name: tests + +on: + # Trigger the workflow on push or pull request, + # but only for the master branch + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + julia-version: ['1.9'] + 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 + env: + PYTHON: "" + - uses: julia-actions/julia-runtest@v1 + env: + PYTHON: "" \ No newline at end of file diff --git a/README.md b/README.md index 47b981f..ae46466 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +![tests](https://github.com/jkosata/AbstractFields.jl/workflows/tests/badge.svg?branch=master) + This is a simple package to enable declaring fields for abstract types in Julia, see https://github.com/JuliaLang/julia/issues/4935 - allow kwdefs in `@with_fields` (ensure the call of `@with_kw` or `Base.@kwdef` by the newly-created macro)