From 047fae4958a09c8624a0a3622c716703596a12fb Mon Sep 17 00:00:00 2001 From: Markus Meissner Date: Sun, 27 Oct 2024 16:49:10 +0100 Subject: [PATCH] re-add: ci.yml --- .github/workflows/ci.yml | 42 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000000..c1de991f2a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,42 @@ +name: Continuous integration +on: + push: + branches-ignore: + - "master" + pull_request: + +jobs: + syntax-check: + name: Check syntax + runs-on: ubuntu-latest + container: python:3.11-slim + continue-on-error: true + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Create virtual environment + run: | + python -m venv venv + . venv/bin/activate + pip install -r requirements.txt + - name: Syntax check + run: | + . venv/bin/activate + rstcheck --recursive --ignore-directives "tabs" fido2/ hsm/ nethsm/ nextbox/ nitrokey3/ nitropad/ nitropc/ nitrophone/ nitrowall/ pro/ software/ start/ storage/ u2f/ + build-error-check: + name: Check build error + runs-on: ubuntu-latest + container: python:3.11-slim + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Create virtual environment + run: | + python -m venv venv + . venv/bin/activate + pip install -r requirements.txt + - name: Build documentation + run: | + . venv/bin/activate + cd source + sphinx-build -W -j 1 -a -D language='en' -b html . __preview