From bb26972dde83a8ec458aea1c328a0da84a528788 Mon Sep 17 00:00:00 2001 From: Nick Pegg Date: Sat, 26 Apr 2025 17:32:52 -0700 Subject: [PATCH] set up forgejo actions --- .forgejo/workflows/test.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .forgejo/workflows/test.yml diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml new file mode 100644 index 0000000..7f3579e --- /dev/null +++ b/.forgejo/workflows/test.yml @@ -0,0 +1,37 @@ +name: Run tests + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-24.04 + strategy: + matrix: + python-version: + - '3.12' + - '3.13' + steps: + # - uses: actions/checkout@v4 + - run: pipx install poetry + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + cache: poetry + - name: Cache deps + uses: actions/cache@v4 + with: + path: ~/.cache/pypoetry + key: ${{ runner.os }}-poetry-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }} + restore-keys: | + ${{ runner.os }}-poetry-${{ matrix.python-version }}- + - name: Install deps + run: make dev + - name: Run tests + run: make ci