From 9176e38bc8fb825f4f7474f8abc87624133bc15e Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Fri, 1 Jul 2022 19:26:41 +0200 Subject: [PATCH] Switch to sourcehut CI --- .build.yml | 17 +++++++++++++---- .github/workflows/ci.yml | 22 ---------------------- 2 files changed, 13 insertions(+), 26 deletions(-) delete mode 100644 .github/workflows/ci.yml diff --git a/.build.yml b/.build.yml index 8a92d72..fd05972 100644 --- a/.build.yml +++ b/.build.yml @@ -1,12 +1,21 @@ -image: image: alpine/latest +image: alpine/edge sources: - https://git.sr.ht/~tsileo/microblog.pub packages: +- python3 - python3-dev -- python3-pip -- poetry +- libxml2-dev +- libxslt-dev +- gcc +- jpeg-dev +- zlib-dev +- build-base +- libffi-dev tasks: - - tests | + - setup: | + curl -sSL https://install.python-poetry.org | python3 - + - tests: | + export PATH="/home/build/.local/bin:$PATH" cd microblog.pub poetry install --no-interaction poetry run inv lint diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 320fad9..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,22 +0,0 @@ -on: - push: - branches: - - 'v2' -jobs: - tests: - runs-on: ubuntu-latest - env: - MICROBLOGPUB_CONFIG_FILE: tests.toml - steps: - - uses: actions/checkout@v3 - - name: Install poetry - run: pipx install poetry - - uses: actions/setup-python@v4 - with: - python-version: '3.10' - cache: 'poetry' - - run: | - poetry env use "3.10" - poetry install --no-interaction - - run: poetry run inv lint - - run: poetry run inv tests