irctest/.github/workflows/ergo.yml

46 lines
1.1 KiB
YAML
Raw Normal View History

# This file was auto-generated by make_workflows.py.
# Do not edit it manually, modifications will be lost.
2021-02-24 10:47:51 +00:00
jobs:
build:
runs-on: ubuntu-latest
steps:
- 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
2021-03-05 16:15:08 +00:00
- run: go version
2021-02-24 11:06:47 +00:00
- name: Cache dependencies
uses: actions/cache@v2
with:
key: ${{ runner.os }}-ergo
path: |-
2021-02-24 11:06:47 +00:00
~/.cache
2021-05-27 03:55:21 +00:00
$GITHUB_WORKSPACE/ergo
2021-02-24 10:47:51 +00:00
- name: Install dependencies
run: |-
sudo apt-get install atheme-services
2021-02-24 10:47:51 +00:00
python -m pip install --upgrade pip
2021-02-24 11:17:22 +00:00
pip install pytest -r requirements.txt
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 03:55:21 +00:00
path: ergo
ref: irctest_stable
repository: ergochat/ergo
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
name: irctest with Ergo
'on':
pull_request: null
push: null