From 956fa02eeb668912f17d22f121fa678e582b6397 Mon Sep 17 00:00:00 2001 From: Asim Awdah Date: Fri, 13 Nov 2026 01:07:44 +0300 Subject: [PATCH] ci: add automated quality checks --- .github/workflows/server-ci.yml | 45 +++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/server-ci.yml diff --git a/.github/workflows/server-ci.yml b/.github/workflows/server-ci.yml new file mode 100644 index 0000000..d6816f6 --- /dev/null +++ b/.github/workflows/server-ci.yml @@ -0,0 +1,45 @@ +name: Server CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: server-ci-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + validate: + name: Validate Python source and container + runs-on: ubuntu-latest + timeout-minutes: 20 + steps: + - name: Check out source + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + cache: pip + cache-dependency-path: requirements.txt + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Compile Python source + run: python -m compileall -q app + + - name: Check installed dependencies + run: pip check + + - name: Build Docker image + run: docker build --tag openkey-server:ci .