From a824ced0b4fe1c3426293c5d041a2b80d71487fc Mon Sep 17 00:00:00 2001 From: Mattijs Ugen <144798+akaIDIOT@users.noreply.github.com> Date: Wed, 30 Oct 2024 13:49:05 +0100 Subject: [PATCH] Add minimal github action sequence --- .github/workflows/python.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/python.yml diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml new file mode 100644 index 0000000..da19765 --- /dev/null +++ b/.github/workflows/python.yml @@ -0,0 +1,25 @@ +name: Python + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: pdm-project/setup-pdm@v4 + with: + python-version: "3.10" + - name: Install dependencies + # install all dependencies (including development ones) defined through pyproject.toml + run: pdm install --group :all + - name: Run checks + run: pdm run check + - name: Download additional models + run: pdm run download-spacy-model + - name: Run tests + run: pdm run test