Created GitHub Action workflow to run tests

pull/8/head
Neeraj Kashyap 2021-12-18 08:57:23 -08:00
rodzic af85c349b1
commit 7180c68201
1 zmienionych plików z 29 dodań i 0 usunięć

29
.github/workflows/test.yml vendored 100644
Wyświetl plik

@ -0,0 +1,29 @@
name: Run Moonstream DAO tests
on:
push:
branches:
- cicd
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: pip install -U pip
- name: Install dev dependencies
run: pip install -e .[dev]
- name: Black syntax check
run: black --check moonworm/
- name: Run unit tests
run: sh test.sh