diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 3c55488e4..000000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,65 +0,0 @@ -version: 2 - -common-steps: - - &install-deps - run: - name: Install system-level and Python dependencies - command: | - apt-get update && apt-get install -y --no-install-recommends make python3 python3-pip - pip install poetry==1.4.0 - poetry install --no-ansi - -jobs: - lint: - docker: - # We use a standard Debian image to mirror a typical developer environment. - # This should be updated whenever a new Debian stable version is available. - - image: debian:bullseye - steps: - - checkout - - *install-deps - - run: - name: Run lint - command: | - make docs-lint - - linkcheck: - docker: - - image: debian:bullseye - steps: - - checkout - - *install-deps - - run: - name: Run link check - command: | - make docs-linkcheck - - build: - docker: - - image: debian:bullseye - steps: - - checkout - - setup_remote_docker - - run: - name: Build production deployment - command: | - apt-get update && apt-get install docker.io -y - docker build --build-arg GIT_BRANCH=${CIRCLE_BRANCH} -f deploy/Dockerfile . - -workflows: - version: 2 - build: - jobs: - - build - - lint - - nightly: - triggers: - - schedule: - cron: "0 3 * * *" - filters: - branches: - only: - - main - jobs: - - linkcheck diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..5ba021af0 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +--- +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 + with: + fetch-depth: 0 + - name: Build production deployment + run: | + podman 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 000000000..73291619a --- /dev/null +++ b/.github/workflows/linkcheck.yml @@ -0,0 +1,21 @@ +--- +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