workflows: Add inspircd

This commit is contained in:
Valentin Lorentz 2021-02-24 12:31:36 +01:00 committed by Valentin Lorentz
parent 4de76ba1b2
commit d6537548c6
2 changed files with 52 additions and 0 deletions

51
.github/workflows/inspircd.yml vendored Normal file
View File

@ -0,0 +1,51 @@
name: irctest with InspIRCd
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
~/.cache
$GITHUB_WORKSPACE/inspircd
key: ${{ runner.os }}-inspircd
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest -r requirements.txt
- name: Checkout InspIRCd
uses: actions/checkout@v2
with:
repository: inspircd/inspircd
ref: v3.8.1
path: inspircd
- name: Build InspIRCd
run: |
cd $GITHUB_WORKSPACE/inspircd/
./configure --prefix=$HOME/.local/ --development
make -j 4
make install
- name: Test with pytest
run: |
PATH=~/.local/bin:$PATH pytest --controller irctest.controllers.inspircd -k 'not Oragono and not deprecated and not strict'

View File

@ -83,6 +83,7 @@ To run (server) tests on Charybdis::
cd /tmp/
git clone https://github.com/atheme/charybdis.git
cd charybdis
./autogen.sh
./configure --prefix=$HOME/.local/
make -j 4
make install