diff --git a/.gitea/workflows/python-engine.yml b/.gitea/workflows/python-engine.yml new file mode 100644 index 0000000..e707174 --- /dev/null +++ b/.gitea/workflows/python-engine.yml @@ -0,0 +1,31 @@ +name: Python Engine CI (SIAX Cloud) + +on: + push: + branches: ["**"] + pull_request: + workflow_dispatch: + +jobs: + python-engine: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + cache: pip + cache-dependency-path: | + services/api/requirements.txt + services/api/requirements-dev.txt + - name: Install engine test dependencies + working-directory: services/api + run: python -m pip install --disable-pip-version-check -r requirements-dev.txt + - name: Compile Python sources + working-directory: services/api + run: python -m compileall -q orchestrator sources workers + - name: Run Python engine regression suite + working-directory: services/api + env: + PYTHONPATH: . + run: python -m pytest -q