2021-02-24 11:31:36 +00:00
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/
2021-02-24 23:15:09 +00:00
patch src/inspircd.cpp < $GITHUB_WORKSPACE/inspircd_mainloop.patch
2021-02-24 11:31:36 +00:00
./configure --prefix=$HOME/.local/ --development
make -j 4
make install
- name : Test with pytest
run : |
2021-02-24 18:48:14 +00:00
# testNoticeNonexistentChannel fails because of https://github.com/inspircd/inspircd/issues/1849
2021-02-27 11:43:19 +00:00
# testDirectMessageEcho fails because of https://github.com/inspircd/inspircd/issues/1851
2021-02-26 20:07:15 +00:00
# testKeyValidation fails because of https://github.com/inspircd/inspircd/issues/1850
2021-05-27 03:55:21 +00:00
PATH=~/.local/bin:$PATH pytest --controller irctest.controllers.inspircd -k 'not Ergo and not deprecated and not strict and not testNoticeNonexistentChannel and not testDirectMessageEcho and not testKeyValidation'
2021-02-24 11:31:36 +00:00