diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..24258750 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: CI +on: [push, pull_request] + +jobs: + lint: + runs-on: ubuntu-latest + container: debian:bullseye + steps: + - uses: actions/checkout@v3 + - name: Install dependencies + run: | + apt-get update && apt-get install --yes --no-install-recommends make python3-pip + pip install poetry==1.4.0 + poetry install --no-ansi + - name: Run lint + run: | + make docs-lint + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Build production deployment + run: | + docker build --build-arg GIT_BRANCH=$(git rev-parse HEAD) --file deploy/Dockerfile . diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml new file mode 100644 index 00000000..6d819799 --- /dev/null +++ b/.github/workflows/linkcheck.yml @@ -0,0 +1,19 @@ +name: Link check +on: + schedule: + - cron: '0 3 * * *' + +jobs: + linkcheck: + runs-on: ubuntu-latest + container: debian:bullseye + steps: + - uses: actions/checkout@v3 + - name: Install dependencies + run: | + apt-get update && apt-get install --yes --no-install-recommends make python3-pip + pip install poetry==1.4.0 + poetry install --no-ansi + - name: Run lint + run: | + make docs-linkcheck