Skip to content

[Test] 创建 GitHub Action 的 test.yml #5

[Test] 创建 GitHub Action 的 test.yml

[Test] 创建 GitHub Action 的 test.yml #5

Workflow file for this run

name: Wechatter
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v3
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Copy config file
run: |
cp config.ini.example config.ini
- name: Test code
run: |
export LOG_LEVEL="CRITICAL"
python -m unittest discover -s tests