irctest/.github/workflows/ergo.yml

55 lines
1003 B
YAML
Raw Normal View History

2021-05-27 03:55:21 +00:00
name: irctest with Ergo
2021-02-24 10:47:51 +00:00
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
2021-05-27 03:55:21 +00:00
$GITHUB_WORKSPACE/ergo
key: ${{ runner.os }}-ergo
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
2021-05-27 03:55:21 +00:00
- name: Checkout Ergo
2021-02-24 10:47:51 +00:00
uses: actions/checkout@v2
with:
2021-05-27 14:17:28 +00:00
repository: ergochat/ergo
ref: irctest_stable
2021-05-27 03:55:21 +00:00
path: ergo
2021-02-24 10:47:51 +00:00
2021-05-27 03:55:21 +00:00
- name: Build Ergo
2021-02-24 10:47:51 +00:00
run: |
2021-05-27 03:55:21 +00:00
cd $GITHUB_WORKSPACE/ergo/
2021-02-24 10:47:51 +00:00
make build
make install
- name: Test with pytest
run: |
PATH=~/go/bin:$PATH make ergo