- .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
43 lines
1.4 KiB
YAML
43 lines
1.4 KiB
YAML
# 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
|