From b74492540906a23f6bb027c6f6613432b2eb9bd0 Mon Sep 17 00:00:00 2001 From: David Perl Date: Thu, 2 Jul 2026 13:03:47 +0200 Subject: [PATCH] ci: move setup to action and add format ci step --- .gitea/actrions/install/action.yml | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitea/actrions/install/action.yml diff --git a/.gitea/actrions/install/action.yml b/.gitea/actrions/install/action.yml new file mode 100644 index 0000000..a44fc9c --- /dev/null +++ b/.gitea/actrions/install/action.yml @@ -0,0 +1,32 @@ +name: "Install" +description: "Setup system and python environment and install repo" +inputs: + python_version: + required: false + default: "3.12" + description: "Python version to use" + +runs: + using: "composite" + steps: + - name: Install Libraries + shell: bash + run: | + sudo apt-get update + sudo apt-get install -y libgl1 libegl1 + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Checkout code + uses: actions/checkout@v5 + + - name: Install repo + shell: bash + run: | + pip install uv + uv venv + source .venv/bin/activate + uv pip install -e .[test]