Skip to content

Draft: Run the pynntp tests in the build GitHub Action #953

Draft: Run the pynntp tests in the build GitHub Action

Draft: Run the pynntp tests in the build GitHub Action #953

Workflow file for this run

## Workflow for GitHub Actions testing.
name: build
"on": [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
env:
AUTHOR_TESTING: 1
C_TAP_VERBOSE: 1
steps:
- name: checkout
uses: actions/checkout@v4
- name: install
run: sudo -E ci/install
- name: test
run: ci/test
- run: pwd && ls -la
- run: cat HACKING
- run: cat INSTALL
- run: cat NEWS
- run: cat README
- run: ls -lR /etc 2>/dev/null | grep -E 'inn|news'
- run: ls -l /usr/local # No `news` directory
# - run: ls -lR /usr/local/news 2>/dev/null | grep -E 'inn|news' || true
# - run: find /etc -name inn.conf 2>/dev/null || true
- run: find /home -name inn.conf 2>/dev/null || true
# - run: find /usr/local/news -name inn.conf 2>/dev/null || true
- run: ls -la site
- run: cat site/inn.conf # Useful for debugging
# - run: cat /usr/local/news/etc/inn.conf || true # Useful for debugging
# - run: ls /etc/systemd/system || true
# - run: systemctl --help || true
# - run: systemctl list-units --all || true
# - run: systemctl list-units --type=service --all || true
- run: sudo systemctl enable inn2 || true
- run: sudo systemctl start inn2 || true
# - run: systemctl show inn2 || true
- run: systemctl status inn2 || true
# - run: /usr/lib/news/bin/rc.news || true
# Run all pynntp tests
- run: ls -la
- uses: actions/checkout@v4
with:
repository: greenbender/pynntp
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- run: pip install --upgrade pip
- run: pip install pytest
- run: pip install --editable .
- run: pytest
pynntp_tests:
runs-on: ubuntu-latest
env:
AUTHOR_TESTING: 1
C_TAP_VERBOSE: 1
steps:
- run: env
- uses: actions/checkout@v4
- run: ./configure CC="${COMPILER:-gcc}" --prefix=$HOME/work/inn/inn-install \
--with-canlock --with-news-user=USER --with-news-group=GROUP --with-openssl \
--with-perl --with-python --with-sasl --with-zlib
# - run: make distclean
- run: make
- run: make install
- run: env
- run: INN_HOSTNAME=inn.github-action $HOME/work/inn/inn-install/bin/rc.news start
- run: pwd && ls -la
- run: ls -lR /etc 2>/dev/null | grep -E 'inn|news'
- run: ls -l /usr/local # No `news` directory
# - run: ls -lR /usr/local/news 2>/dev/null | grep -E 'inn|news' || true
# - run: find /etc -name inn.conf 2>/dev/null || true
- run: find /home -name inn.conf 2>/dev/null || true
# - run: find /usr/local/news -name inn.conf 2>/dev/null || true
- run: ls -la site || true
- run: cat site/inn.conf || true # Useful for debugging
# - run: cat /usr/local/news/etc/inn.conf || true # Useful for debugging
# - run: ls /etc/systemd/system || true
# - run: systemctl --help || true
# - run: systemctl list-units --all || true
# - run: systemctl list-units --type=service --all || true
- run: sudo systemctl enable inn2 || true
- run: sudo systemctl start inn2 || true
# - run: systemctl show inn2 || true
- run: systemctl status inn2 || true
# - run: /usr/lib/news/bin/rc.news || true
# Run all pynntp tests
- run: ls -la
- uses: actions/checkout@v4
with:
repository: greenbender/pynntp
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- run: pip install --upgrade pip
- run: pip install pytest
- run: pip install --editable .
- run: pytest