2022-10-20 13:30:44 +00:00
|
|
|
name: "Test: Coordinator"
|
2022-07-13 18:55:30 +00:00
|
|
|
|
|
|
|
on:
|
2022-07-13 20:40:58 +00:00
|
|
|
workflow_dispatch:
|
2022-09-20 17:39:49 +00:00
|
|
|
workflow_call:
|
2022-07-13 18:55:30 +00:00
|
|
|
push:
|
|
|
|
branches: [ "main" ]
|
|
|
|
paths: ["api", "chat", "control", "robosats"]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "main" ]
|
|
|
|
paths: ["api", "chat", "control", "robosats"]
|
|
|
|
|
2022-09-20 17:39:49 +00:00
|
|
|
# concurrency:
|
|
|
|
# group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
|
|
|
|
# cancel-in-progress: true
|
2022-10-25 18:04:12 +00:00
|
|
|
|
2022-07-13 18:55:30 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
DEVELOPMENT: 1
|
|
|
|
strategy:
|
|
|
|
max-parallel: 4
|
|
|
|
matrix:
|
2023-05-10 09:28:23 +00:00
|
|
|
python-version: ["3.11"]
|
2022-07-13 18:55:30 +00:00
|
|
|
|
|
|
|
steps:
|
2022-07-13 20:40:58 +00:00
|
|
|
- name: 'Checkout'
|
2023-09-11 16:00:32 +00:00
|
|
|
uses: actions/checkout@v4
|
2022-07-13 18:55:30 +00:00
|
|
|
- name: 'Set up Python ${{ matrix.python-version }}'
|
2023-05-02 23:58:27 +00:00
|
|
|
uses: actions/setup-python@v4
|
2022-07-13 18:55:30 +00:00
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: 'Install Python Dependencies'
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install -r requirements.txt
|
|
|
|
- name: 'Install LND gRPC Dependencies'
|
2023-05-29 18:22:41 +00:00
|
|
|
run: bash ./scripts/generate_grpc.sh
|
2022-07-13 18:55:30 +00:00
|
|
|
- name: 'Create .env File'
|
|
|
|
run: |
|
|
|
|
mv .env-sample .env
|
|
|
|
- name: 'Tests'
|
|
|
|
run: |
|
2022-09-20 17:39:49 +00:00
|
|
|
python manage.py test
|