BackDoorBuster/.github/workflows/python-test.yml
sangge-win dd891443a9
Some checks are pending
Python application test / build (pull_request) Waiting to run
修改了action默认镜像
2024-04-21 21:25:37 +08:00

26 lines
575 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@v4
with:
python-version: "3.9.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
- name: Run tests
run: |
python -m unittest discover -s tests