2021-02-24 10:47:51 +00:00
|
|
|
name: irctest with Oragono
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2021-02-24 11:06:47 +00:00
|
|
|
|
2021-02-24 10:47:51 +00:00
|
|
|
- uses: actions/checkout@v2
|
2021-02-24 11:06:47 +00:00
|
|
|
|
|
|
|
- name: Set up Python 3.7
|
2021-02-24 10:47:51 +00:00
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
2021-02-24 11:06:47 +00:00
|
|
|
python-version: 3.7
|
|
|
|
|
|
|
|
- name: Cache dependencies
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.cache
|
|
|
|
$GITHUB_WORKSPACE/oragono
|
|
|
|
key: ${{ runner.os }}
|
|
|
|
|
2021-02-24 10:47:51 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
python -m pip install pre-commit pytest
|
|
|
|
pip install -r requirements.txt
|
2021-02-24 11:06:47 +00:00
|
|
|
|
2021-02-24 10:47:51 +00:00
|
|
|
- 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'
|