Attempt to add forgejo workflow
This commit is contained in:
parent
db0476f9ad
commit
ec338562bf
1 changed files with 40 additions and 0 deletions
40
.forgejo/workflows/ci.yml
Normal file
40
.forgejo/workflows/ci.yml
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: docker
|
||||
|
||||
container:
|
||||
image: debian:13
|
||||
options: --privileged
|
||||
|
||||
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 python3-venv pipx curl git ca-certificates
|
||||
|
||||
- name: Install Poetry
|
||||
run: |
|
||||
pipx install poetry==1.8.3
|
||||
poetry --version
|
||||
|
||||
- name: Install project deps (including test extras)
|
||||
env:
|
||||
POETRY_VIRTUALENVS_IN_PROJECT: "true"
|
||||
run: |
|
||||
poetry install --with test
|
||||
|
||||
- name: Run test script
|
||||
run: |
|
||||
chmod +x ./tests.sh
|
||||
./tests.sh
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue