2021-07-04 21:12:26 +00:00
|
|
|
# This file was auto-generated by make_workflows.py.
|
|
|
|
# Do not edit it manually, modifications will be lost.
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
publish-test-results:
|
|
|
|
if: success() || failure()
|
|
|
|
name: Publish Unit Tests Results
|
|
|
|
needs:
|
|
|
|
- test-solanum
|
|
|
|
- test-ergo
|
|
|
|
- test-inspircd
|
|
|
|
- test-unrealircd
|
|
|
|
- test-limnoria
|
|
|
|
- test-sopel
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Download Artifacts
|
|
|
|
uses: actions/download-artifact@v2
|
|
|
|
with:
|
|
|
|
path: artifacts
|
|
|
|
- name: Publish Unit Test Results
|
|
|
|
uses: EnricoMi/publish-unit-test-result-action@v1
|
|
|
|
with:
|
|
|
|
files: artifacts/**/*.xml
|
|
|
|
test-ergo:
|
|
|
|
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
|
|
|
|
- uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: ~1.16
|
|
|
|
- run: go version
|
|
|
|
- name: Cache dependencies
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
2021-07-06 19:34:56 +00:00
|
|
|
key: ${{ runner.os }}-ergo-devel
|
2021-07-04 21:12:26 +00:00
|
|
|
path: |-
|
|
|
|
~/.cache
|
|
|
|
$GITHUB_WORKSPACE/ergo
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |-
|
|
|
|
sudo apt-get install atheme-services
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install pytest -r requirements.txt
|
|
|
|
- name: Checkout Ergo
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
path: ergo
|
|
|
|
ref: master
|
|
|
|
repository: ergochat/ergo
|
|
|
|
- name: Build Ergo
|
|
|
|
run: |
|
|
|
|
cd $GITHUB_WORKSPACE/ergo/
|
|
|
|
make build
|
|
|
|
make install
|
|
|
|
- name: Test with pytest
|
|
|
|
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=~/go/bin:$PATH make ergo
|
|
|
|
- if: always()
|
|
|
|
name: Publish results
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: pytest results Ergo (devel)
|
|
|
|
path: pytest.xml
|
|
|
|
test-inspircd:
|
|
|
|
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: Install dependencies
|
|
|
|
run: |-
|
|
|
|
sudo apt-get install atheme-services
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install pytest -r requirements.txt
|
|
|
|
- name: Checkout InspIRCd
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
path: inspircd
|
|
|
|
ref: master
|
|
|
|
repository: inspircd/inspircd
|
|
|
|
- name: Build InspIRCd
|
|
|
|
run: |
|
|
|
|
cd $GITHUB_WORKSPACE/inspircd/
|
|
|
|
patch src/inspircd.cpp < $GITHUB_WORKSPACE/inspircd_mainloop.patch
|
|
|
|
./configure --prefix=$HOME/.local/inspircd --development
|
2021-07-05 16:56:49 +00:00
|
|
|
make -j 4 INSPIRCD_DEBUG=3
|
2021-07-04 21:12:26 +00:00
|
|
|
make install
|
|
|
|
- name: Test with pytest
|
2021-07-05 20:04:18 +00:00
|
|
|
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=~/.local/inspircd/bin:$PATH PYTEST_ARGS="$PYTEST_ARGS
|
|
|
|
-m 'not services'" make inspircd
|
2021-07-04 21:12:26 +00:00
|
|
|
- if: always()
|
|
|
|
name: Publish results
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: pytest results InspIRCd (devel)
|
|
|
|
path: pytest.xml
|
|
|
|
test-limnoria:
|
|
|
|
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:
|
2021-07-06 19:34:56 +00:00
|
|
|
key: ${{ runner.os }}-limnoria-devel
|
2021-07-04 21:12:26 +00:00
|
|
|
path: |-
|
|
|
|
~/.cache
|
|
|
|
$GITHUB_WORKSPACE/placeholder
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |-
|
|
|
|
sudo apt-get install atheme-services
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install pytest -r requirements.txt
|
|
|
|
- name: Install dependencies
|
|
|
|
run: pip install git+https://github.com/ProgVal/Limnoria.git@testing cryptography
|
|
|
|
- name: Test with pytest
|
|
|
|
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=~/.local/bin:$PATH make limnoria
|
|
|
|
- if: always()
|
|
|
|
name: Publish results
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: pytest results Limnoria (devel)
|
|
|
|
path: pytest.xml
|
|
|
|
test-solanum:
|
|
|
|
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:
|
2021-07-06 19:34:56 +00:00
|
|
|
key: ${{ runner.os }}-solanum-devel
|
2021-07-04 21:12:26 +00:00
|
|
|
path: |-
|
|
|
|
~/.cache
|
|
|
|
$GITHUB_WORKSPACE/solanum
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |-
|
|
|
|
sudo apt-get install atheme-services
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install pytest -r requirements.txt
|
|
|
|
- name: Checkout Solanum
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
path: solanum
|
|
|
|
ref: main
|
|
|
|
repository: solanum-ircd/solanum
|
|
|
|
- name: Build Solanum
|
|
|
|
run: |
|
|
|
|
cd $GITHUB_WORKSPACE/solanum/
|
|
|
|
./autogen.sh
|
|
|
|
./configure --prefix=$HOME/.local/
|
|
|
|
make -j 4
|
|
|
|
make install
|
|
|
|
- name: Test with pytest
|
|
|
|
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=~/.local/bin:$PATH make solanum
|
|
|
|
- if: always()
|
|
|
|
name: Publish results
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: pytest results Solanum (devel)
|
|
|
|
path: pytest.xml
|
|
|
|
test-sopel:
|
|
|
|
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:
|
2021-07-06 19:34:56 +00:00
|
|
|
key: ${{ runner.os }}-sopel-devel
|
2021-07-04 21:12:26 +00:00
|
|
|
path: |-
|
|
|
|
~/.cache
|
|
|
|
$GITHUB_WORKSPACE/placeholder
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |-
|
|
|
|
sudo apt-get install atheme-services
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install pytest -r requirements.txt
|
|
|
|
- name: Install dependencies
|
|
|
|
run: pip install git+https://github.com/sopel-irc/sopel.git
|
|
|
|
- name: Test with pytest
|
|
|
|
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=~/.local/bin:$PATH make sopel
|
|
|
|
- if: always()
|
|
|
|
name: Publish results
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: pytest results Sopel (devel)
|
|
|
|
path: pytest.xml
|
|
|
|
test-unrealircd:
|
|
|
|
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:
|
2021-07-06 19:34:56 +00:00
|
|
|
key: ${{ runner.os }}-unrealircd-devel
|
2021-07-04 21:12:26 +00:00
|
|
|
path: |-
|
|
|
|
~/.cache
|
|
|
|
$GITHUB_WORKSPACE/unrealircd
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |-
|
|
|
|
sudo apt-get install atheme-services
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install pytest -r requirements.txt
|
|
|
|
- name: Checkout UnrealIRCd
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
path: unrealircd
|
|
|
|
ref: unreal52
|
|
|
|
repository: unrealircd/unrealircd
|
|
|
|
- name: Build UnrealIRCd
|
|
|
|
run: |
|
|
|
|
cd $GITHUB_WORKSPACE/unrealircd/
|
|
|
|
cp $GITHUB_WORKSPACE/unreal/* .
|
|
|
|
CFLAGS=-O0 ./Config -quick
|
|
|
|
make -j 4
|
|
|
|
make install
|
|
|
|
- name: Test with pytest
|
|
|
|
run: PYTEST_ARGS='--junit-xml pytest.xml' PATH=~/.local/unrealircd/bin:$PATH
|
|
|
|
make unrealircd
|
|
|
|
- if: always()
|
|
|
|
name: Publish results
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: pytest results UnrealIRCd (devel)
|
|
|
|
path: pytest.xml
|
|
|
|
name: irctest with devel versions
|
|
|
|
'on':
|
|
|
|
schedule:
|
|
|
|
- cron: 51 8 * * 6
|
|
|
|
- cron: 51 8 * * 0
|
|
|
|
- cron: 51 17 * * *
|
|
|
|
workflow_dispatch: null
|