workflows: First attempt, with Oragono

This commit is contained in:
Valentin Lorentz 2021-02-24 11:47:51 +01:00 committed by Valentin Lorentz
parent e6ca463dce
commit 64735adf86
2 changed files with 48 additions and 0 deletions

45
.github/workflows/oragono.yml vendored Normal file
View File

@ -0,0 +1,45 @@
name: irctest with Oragono
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pre-commit pytest
pip install -r requirements.txt
- name: Lint
run: |
pre-commit run -a
- name: Checkout Oragono
uses: actions/checkout@v2
with:
repository: oragono/oragono
ref: v2.5.1
path: oragono
- name: Build Oragono
run: |
cd $GITHUB_WORKSPACE/oragono/
make build
make install
- name: Test with pytest
run: |
PATH=~/go/bin:$PATH pytest --controller=irctest.controllers.oragono -k 'not deprecated'

3
requirements.txt Normal file
View File

@ -0,0 +1,3 @@
# The following dependencies are actually optional:
pyxmpp2-scram
ecdsa