From ef2937efd245a86a1cf4e13a9a18336646f01184 Mon Sep 17 00:00:00 2001 From: Willem Broekema Date: Thu, 13 Jun 2024 20:52:10 +0200 Subject: [PATCH] WIP test --- .github/workflows/github-workflow-tests.lisp | 14 +++++++ .github/workflows/run-tests.yaml | 43 ++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 .github/workflows/github-workflow-tests.lisp create mode 100644 .github/workflows/run-tests.yaml diff --git a/.github/workflows/github-workflow-tests.lisp b/.github/workflows/github-workflow-tests.lisp new file mode 100644 index 0000000..c78fa7d --- /dev/null +++ b/.github/workflows/github-workflow-tests.lisp @@ -0,0 +1,14 @@ +(in-package :cl-user) + +#+sbcl +(require :asdf) + +(load "/tmp/ql-dir/quicklisp.lisp") +(quicklisp-quickstart:install) + +(load "/home/runner/work/cl-python/cl-python/clpython.asd") + +(ql:quickload :cl-python) +(ql:quickload :cl-python-test) + +(asdf:test-system "clpython") diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml new file mode 100644 index 0000000..5b316d2 --- /dev/null +++ b/.github/workflows/run-tests.yaml @@ -0,0 +1,43 @@ +name: build & test +on: + push: + branches: + - master + - dev +jobs: + + install_quicklisp: + name: Install QuickLisp + runs-on: ubuntu-latest + steps: + - run: | + cd /tmp + mkdir ql-dir + cd ql-dir + wget -q https://beta.quicklisp.org/quicklisp.lisp + chmod -R a+rwx /tmp/ql-dir + - name: Upload Quicklisp artifact + uses: actions/upload-artifact@v4 + with: + name: ql-artifact + path: /tmp/ql-dir + + run_test_suites: + name: Test on ${{ matrix.scenario }} + runs-on: ubuntu-latest + strategy: + matrix: + scenario: [sbcl] + needs: [install_quicklisp] + steps: + - uses: actions/checkout@v4 + + - uses: actions/download-artifact@v4 + with: + name: ql-artifact + path: /tmp/ql-dir + + - if: matrix.scenario == 'sbcl' + run: | + sudo apt-get install sbcl + sbcl --script /home/runner/work/cl-python/cl-python/.github/workflows/github-workflow-tests.lisp