From a58ee106780f8a7d96dc4926038d189eb563a884 Mon Sep 17 00:00:00 2001 From: Alastair Weakley Date: Wed, 8 May 2024 17:24:53 +1000 Subject: [PATCH] Add dummy GH Action to activate Actions for the repository --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ .github/workflows/dummy.yml | 8 ++++++++ 2 files changed, 42 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/dummy.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..34cbabc --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI + +on: + workflow_dispatch: + pull_request: + +jobs: + python-unit: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + defaults: + run: + working-directory: . + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + cache: 'pip' + cache-dependency-path: '**/pyproject.toml' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install .[test] + + - name: Run unit tests + run: | + pytest diff --git a/.github/workflows/dummy.yml b/.github/workflows/dummy.yml new file mode 100644 index 0000000..af2aeba --- /dev/null +++ b/.github/workflows/dummy.yml @@ -0,0 +1,8 @@ +name: dummy-github-action + +on: [push] +jobs: + print-message: + runs-on: ubuntu-latest + steps: + - run: echo "Dummy Action to initialise Actions for the repository"