mirror of
https://github.com/KingHWJ/WeReadBoard.git
synced 2026-11-03 18:24:58 +08:00
33 lines
786 B
YAML
33 lines
786 B
YAML
name: Verify WeReadBoard
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- dev
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- dev
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
verify:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
- name: Install dependencies
|
|
run: python -m pip install -r requirements.txt
|
|
- name: Run Python tests
|
|
run: python -m unittest discover -s tests -v
|
|
- name: Run frontend tests
|
|
run: node --test tests/goals_frontend.test.cjs tests/weapi_fallback.test.cjs
|
|
- name: Check deployment scripts
|
|
run: bash tests/deploy_master_only.test.sh && bash -n deploy.sh
|