Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions .buildbot/tox-bionic/Dockerfile

This file was deleted.

3 changes: 0 additions & 3 deletions .buildbot/tox-bionic/build.sh

This file was deleted.

3 changes: 0 additions & 3 deletions .buildbot/tox-bionic/test.sh

This file was deleted.

17 changes: 0 additions & 17 deletions .buildbot/tox-focal/Dockerfile

This file was deleted.

1 change: 0 additions & 1 deletion .buildbot/tox-focal/test.sh

This file was deleted.

16 changes: 0 additions & 16 deletions .buildbot/tox-jammy/Dockerfile

This file was deleted.

3 changes: 0 additions & 3 deletions .buildbot/tox-jammy/test.sh

This file was deleted.

76 changes: 0 additions & 76 deletions .gitea/workflows/tox-lint.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:

jobs:
build:
# Only run on Gitea; this build needs a self-hosted runner with
# the tool cache and is not meant for GitHub's hosted runners.
if: >-
!contains(github.server_url, 'github.com')
name: buildozer android debug
runs-on: ubuntu-latest
container: ubuntu:focal
Expand Down Expand Up @@ -86,5 +90,3 @@ jobs:
| tar --list -z > package.list
cat package.list
grep '\.sql$' package.list || exit 1


2 changes: 1 addition & 1 deletion .github/workflows/tox-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
# ── Common ─────────────────────────────────────────────────
- name: Install tox
run: |
pip install "tox<4" "virtualenv<20.22.0"
pip install --upgrade tox virtualenv

- name: Run tox -e ${{ matrix.tox-env }}${{ matrix.tox-suffix }}
run: tox -e ${{ matrix.tox-env }}${{ matrix.tox-suffix }}
154 changes: 154 additions & 0 deletions .github/workflows/tox-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
name: Tox Tests

on:
push:
branches: [master, main, v0.6]
pull_request:
branches: [master, main, v0.6]

jobs:
tests:
name: "Ubuntu ${{ matrix.ubuntu }} / ${{ matrix.tox-env }}"
runs-on: ubuntu-latest
container:
image: ubuntu:${{ matrix.ubuntu }}
options: --init

strategy:
fail-fast: false
matrix:
include:
# ── Python 2.7 (bionic & focal only) ─────────────────
- ubuntu: bionic
tox-env: py27
stats-env: ",stats"
python-pkg: "python3.8"
python-dev-pkg: "python-all-dev python3.8-dev"
python-venv-pkg: "python3.8-venv"
python-bin: python3.8
extra-pkgs: "python-setuptools python-msgpack python-prctl
python-qt4"
start-tor: false
deadsnakes-ppa: false
- ubuntu: bionic
tox-env: py27-portable
python-pkg: "python3.8"
python-dev-pkg: "python-all-dev python3.8-dev"
python-venv-pkg: "python3.8-venv"
python-bin: python3.8
extra-pkgs: "python-setuptools python-msgpack python-prctl
python-qt4"
start-tor: false
deadsnakes-ppa: false
- ubuntu: focal
tox-env: py27
stats-env: ",stats"
python-pkg: "python3.9 python3-pip"
python-dev-pkg: "python-all-dev python3.9-dev"
python-venv-pkg: "python3.9-venv"
python-bin: python3.9
extra-pkgs: "python-setuptools"
start-tor: false
deadsnakes-ppa: false
- ubuntu: focal
tox-env: py27-portable
python-pkg: "python3.9 python3-pip"
python-dev-pkg: "python-all-dev python3.9-dev"
python-venv-pkg: "python3.9-venv"
python-bin: python3.9
extra-pkgs: "python-setuptools"
start-tor: false
deadsnakes-ppa: false
# ── Python 3 ─────────────────────────────────────────
- ubuntu: bionic
tox-env: py38
stats-env: ",stats"
python-pkg: python3.8
python-dev-pkg: python3.8-dev
python-venv-pkg: python3.8-venv
python-bin: python3.8
extra-pkgs: ""
start-tor: false
deadsnakes-ppa: true
- ubuntu: focal
tox-env: py39
stats-env: ",stats"
python-pkg: python3.9
python-dev-pkg: python3.9-dev
python-venv-pkg: python3.9-venv
python-bin: python3.9
extra-pkgs: ""
start-tor: false
deadsnakes-ppa: true
- ubuntu: jammy
tox-env: py310
stats-env: ",stats"
python-pkg: python3
python-dev-pkg: python3-dev
python-venv-pkg: ""
python-bin: python3
extra-pkgs: ""
start-tor: false
deadsnakes-ppa: false

env:
DEBIAN_FRONTEND: noninteractive
LANG: en_US.UTF-8
LANGUAGE: "en_US:en"
LC_ALL: en_US.UTF-8

steps:
- name: Install base packages
run: |
apt-get update -q
apt-get install -yq --no-install-suggests --no-install-recommends \
software-properties-common

- name: Add deadsnakes PPA
if: matrix.deadsnakes-ppa
run: add-apt-repository -y ppa:deadsnakes/ppa

- name: Install system dependencies
run: |
apt-get install -yq --no-install-suggests --no-install-recommends \
build-essential libcap-dev libffi-dev \
libssl-dev python3-dev python3-pip \
${{ matrix.python-pkg }} ${{ matrix.python-dev-pkg }} \
${{ matrix.python-venv-pkg }} ${{ matrix.extra-pkgs }} \
language-pack-en qt5dxcb-plugin tor xvfb git sudo dumb-init

# actions/checkout@v4 needs Node 20 → glibc 2.28+.
# Bionic (glibc 2.27) and Gitea runners use a manual git clone.
- name: Checkout repository
if: env.GITEA_ACTIONS != 'true' && matrix.ubuntu != 'bionic'
uses: actions/checkout@v4

- name: Checkout repository (manual)
if: env.GITEA_ACTIONS == 'true' || matrix.ubuntu == 'bionic'
env:
TOKEN: ${{ github.token }}
run: |
git config --global --add safe.directory "$PWD"
git init
SERVER="${GITHUB_SERVER_URL#https://}"
git remote add origin "https://x-access-token:${TOKEN}@${SERVER}/${GITHUB_REPOSITORY}.git"
git fetch --depth 1 origin "${GITHUB_SHA}"
git checkout FETCH_HEAD

- name: Install tox
run: |
${{ matrix.python-bin }} -m pip install --upgrade pip setuptools wheel
${{ matrix.python-bin }} -m pip install --upgrade tox virtualenv

- name: Create unprivileged user
run: |
useradd -m builder
chown -R builder:builder .

# TODO: fix tor tests
# - name: Start tor
# if: matrix.start-tor
# run: service tor start

- name: Run tox ${{ matrix.tox-env }}
run: runuser -u builder -- tox -e "reset,${{ matrix.tox-env }}${{ matrix.stats-env }}"
Loading