From b6c2ce1f944325ce2a79a574e5323b6ed0e8f8f1 Mon Sep 17 00:00:00 2001 From: Jonathan Sundqvist Date: Fri, 27 Dec 2024 10:58:08 +0100 Subject: [PATCH] Add CI to obsidian --- .github/workflow/test.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflow/test.yml diff --git a/.github/workflow/test.yml b/.github/workflow/test.yml new file mode 100644 index 0000000..63d5662 --- /dev/null +++ b/.github/workflow/test.yml @@ -0,0 +1,27 @@ +name: Python Tests + +on: + pull_request: + branches: [ main ] # or 'master' depending on your default branch name + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' # you can specify a specific version like '3.11' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pytest + pip install . + + - name: Run tests + run: | + pytest pelican/plugins/tests