BackDoorBuster/.github/workflows/python-test.yml
dqy 53a7120bfc
Some checks failed
Python application test / build (pull_request) Failing after 16s
fix: 修改自动测试
2024-04-20 11:50:24 +08:00

28 lines
566 B
YAML

name: Python application test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.x"
cache: "pip"
architecture: "x64"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
- name: Run tests
run: |
python -m unittest discover -s tests