irctest/.github/workflows/oragono.yml

55 lines
1.1 KiB
YAML
Raw Normal View History

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
2021-03-05 16:15:08 +00:00
- uses: actions/setup-go@v2
with:
go-version: '~1.16'
- run: go version
2021-02-24 11:06:47 +00:00
- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
~/.cache
$GITHUB_WORKSPACE/oragono
2021-02-24 11:17:22 +00:00
key: ${{ runner.os }}-oragono
2021-02-24 11:06:47 +00:00
2021-02-24 10:47:51 +00:00
- name: Install dependencies
run: |
python -m pip install --upgrade pip
2021-02-24 11:17:22 +00:00
pip install pytest -r requirements.txt
2021-02-24 10:47:51 +00:00
- name: Checkout Oragono
uses: actions/checkout@v2
with:
repository: oragono/oragono
ref: irctest_stable
2021-02-24 10:47:51 +00:00
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'