cryptography build prevention + increase build timeouts + test cleanup

Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
Jokob @NetAlertX
2025-12-07 22:26:44 +00:00
committed by GitHub
parent 6ba48e499c
commit c38da9db0b
3 changed files with 4 additions and 6 deletions

View File

@@ -17,7 +17,7 @@ on:
jobs: jobs:
docker: docker:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 30 timeout-minutes: 60
permissions: permissions:
contents: read contents: read
packages: write packages: write

View File

@@ -36,13 +36,11 @@ RUN apk add --no-cache \
libffi-dev \ libffi-dev \
openssl-dev \ openssl-dev \
git \ git \
rust \
cargo \
&& python -m venv /opt/venv && python -m venv /opt/venv
# Upgrade pip/wheel/setuptools and install Python packages # Upgrade pip/wheel/setuptools and install Python packages
RUN python -m pip install --upgrade pip setuptools wheel && \ RUN python -m pip install --upgrade pip setuptools wheel && \
pip install --no-cache-dir -r /tmp/requirements.txt && \ pip install --prefer-binary --no-cache-dir -r /tmp/requirements.txt && \
chmod -R u-rwx,g-rwx /opt chmod -R u-rwx,g-rwx /opt
# second stage is the main runtime stage with just the minimum required to run the application # second stage is the main runtime stage with just the minimum required to run the application

View File

@@ -38,7 +38,7 @@ def test_graphql_debug_get(client):
def test_graphql_post_unauthorized(client): def test_graphql_post_unauthorized(client):
"""POST /graphql without token should return 401""" """POST /graphql without token should return 403"""
query = {"query": "{ devices { devName devMac } }"} query = {"query": "{ devices { devName devMac } }"}
resp = client.post("/graphql", json=query) resp = client.post("/graphql", json=query)
assert resp.status_code == 403 assert resp.status_code == 403