From 801bbd5e2a4b1673eb640395e99cc6058cdf3b8a Mon Sep 17 00:00:00 2001 From: Andy Pack Date: Sat, 20 Jul 2024 13:41:23 +0100 Subject: [PATCH] adding gitea actions --- .gitea/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..7320829 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,32 @@ +name: Tests +on: [push, pull_request] + +jobs: + build: + strategy: + fail-fast: false + matrix: + python-version: ['3.10'] + poetry-version: [1.3.1] + os: [ubuntu-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 # get source + with: + github-server-url: https://gitea.sheep-ghoul.ts.net + + - name: Install Python 3 + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Install Poetry # dependency management + uses: abatilo/actions-poetry@v2.1.6 + with: + poetry-version: ${{ matrix.poetry-version }} + + - name: Install Dependencies + run: poetry install + + - name: Run Tests # test script + run: poetry run python -m unittest discover -s tests \ No newline at end of file