Attempt to add forgejo workflow (!2)
All checks were successful
CI / test (push) Successful in 2m21s
All checks were successful
CI / test (push) Successful in 2m21s
Reviewed-on: #2
This commit is contained in:
parent
db0476f9ad
commit
a4e9af4444
1 changed files with 37 additions and 0 deletions
37
.forgejo/workflows/ci.yml
Normal file
37
.forgejo/workflows/ci.yml
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: docker
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install system dependencies
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||||
|
python3-venv pipx libgl1 libxcb-cursor0 libxkbcommon-x11-0 libegl1 libdbus-1-3 \
|
||||||
|
libopengl0 libx11-6 libxext6 libxi6 libxrender1 libxrandr2 \
|
||||||
|
libxcb1 libxcb-render0 libxcb-keysyms1 libxcb-image0 libxcb-shm0 \
|
||||||
|
libxcb-icccm4 libxcb-xfixes0 libxcb-shape0 libxcb-randr0 libxcb-xinerama0 \
|
||||||
|
libxkbcommon0
|
||||||
|
|
||||||
|
- name: Install Poetry
|
||||||
|
run: |
|
||||||
|
pipx install poetry==1.8.3
|
||||||
|
/root/.local/bin/poetry --version
|
||||||
|
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
|
||||||
|
|
||||||
|
- name: Install project deps (including test extras)
|
||||||
|
run: |
|
||||||
|
poetry install --with test
|
||||||
|
|
||||||
|
- name: Run test script
|
||||||
|
run: |
|
||||||
|
./tests.sh
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue