-
-
Notifications
You must be signed in to change notification settings - Fork 945
35 lines (31 loc) · 1.05 KB
/
test-mailman.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Test that the current dev branch does not break GNU Mailman 3.
name: test-mailman
on:
# Trigger the workflow on master but also allow it to run manually.
workflow_dispatch:
push:
branches:
- master
jobs:
run_tox:
name: tox -e falcon-nocov
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Run tox
uses: docker://ghcr.io/maxking/mailman-ci-runner-falcon:master
with:
# NOTE(vytas,maxking): The below hack to sed away ::1 is needed since
# Mailman’s aiosmtpd isn’t able to bind to local IPv6 loopback
# inside the container and raises exceptions upon teardown.
args: |
/bin/bash -c "
export LC_ALL=C.UTF-8 &&
tools/testing/fetch_mailman.sh &&
sed '/::1/d' /etc/hosts > /tmp/hosts && cat /tmp/hosts > /etc/hosts &&
python3 --version &&
tox --version &&
tox -c .ecosystem/mailman/tox.ini -e falcon-nocov"