WEBFETCH-WP-0003: Forgejo CI, org licence, inbox acks, progress
- .forgejo/workflows/test.yaml: offline tests on Python 3.10 and 3.13 - LICENSE: Target Revenue Source License V1C1 (org-wide preliminary licence) - pyproject: license field; AGENTS/SCOPE: CI and licence facts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Assistant: claude-code Assistant-Model: opus Assistant-Process: 153021@bnt-lap001 Assistant-Session: 46917be4-6400-4106-b8b7-61953a0caf24
This commit is contained in:
parent
361218fe40
commit
49de8d15b6
20 changed files with 1000 additions and 7 deletions
43
.forgejo/workflows/test.yaml
Normal file
43
.forgejo/workflows/test.yaml
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
# Offline unit tests on the oldest and newest supported Python.
|
||||
# Standard library only: no install step; the exact pushed revision is fetched
|
||||
# as an archive (the repository is public), following key-cape's acceptance job.
|
||||
name: Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
tags: ["v*"]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
unittest-py310:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: python:3.10-alpine
|
||||
steps:
|
||||
- name: Offline unit tests (Python 3.10)
|
||||
run: |
|
||||
set -eu
|
||||
mkdir -p /tmp/src
|
||||
wget -qO /tmp/src.tar.gz "https://forgejo.coulomb.social/${GITHUB_REPOSITORY}/archive/${GITHUB_SHA}.tar.gz"
|
||||
tar xzf /tmp/src.tar.gz -C /tmp/src --strip-components=1
|
||||
cd /tmp/src
|
||||
python3 --version
|
||||
python3 -m compileall -q web_fetcher
|
||||
python3 -B -m unittest discover -s tests -v
|
||||
|
||||
unittest-py313:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: python:3.13-alpine
|
||||
steps:
|
||||
- name: Offline unit tests (Python 3.13)
|
||||
run: |
|
||||
set -eu
|
||||
mkdir -p /tmp/src
|
||||
wget -qO /tmp/src.tar.gz "https://forgejo.coulomb.social/${GITHUB_REPOSITORY}/archive/${GITHUB_SHA}.tar.gz"
|
||||
tar xzf /tmp/src.tar.gz -C /tmp/src --strip-components=1
|
||||
cd /tmp/src
|
||||
python3 --version
|
||||
python3 -m compileall -q web_fetcher
|
||||
python3 -B -m unittest discover -s tests -v
|
||||
Loading…
Add table
Add a link
Reference in a new issue