forked from forks/microblog.pub
Switch to sourcehut CI
This commit is contained in:
parent
10be506ffa
commit
9176e38bc8
2 changed files with 13 additions and 26 deletions
17
.build.yml
17
.build.yml
|
@ -1,12 +1,21 @@
|
||||||
image: image: alpine/latest
|
image: alpine/edge
|
||||||
sources:
|
sources:
|
||||||
- https://git.sr.ht/~tsileo/microblog.pub
|
- https://git.sr.ht/~tsileo/microblog.pub
|
||||||
packages:
|
packages:
|
||||||
|
- python3
|
||||||
- python3-dev
|
- python3-dev
|
||||||
- python3-pip
|
- libxml2-dev
|
||||||
- poetry
|
- libxslt-dev
|
||||||
|
- gcc
|
||||||
|
- jpeg-dev
|
||||||
|
- zlib-dev
|
||||||
|
- build-base
|
||||||
|
- libffi-dev
|
||||||
tasks:
|
tasks:
|
||||||
- tests |
|
- setup: |
|
||||||
|
curl -sSL https://install.python-poetry.org | python3 -
|
||||||
|
- tests: |
|
||||||
|
export PATH="/home/build/.local/bin:$PATH"
|
||||||
cd microblog.pub
|
cd microblog.pub
|
||||||
poetry install --no-interaction
|
poetry install --no-interaction
|
||||||
poetry run inv lint
|
poetry run inv lint
|
||||||
|
|
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
|
@ -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
|
|
Loading…
Reference in a new issue