mirror of
https://github.com/snowykami/mbcp.git
synced 2024-11-22 14:17:38 +08:00
28 lines
480 B
YAML
28 lines
480 B
YAML
name: pytest
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
RunPyTest:
|
|
runs-on: ubuntu-latest
|
|
name: Unit tests
|
|
steps:
|
|
- name: 配置Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: '3.10'
|
|
|
|
- name: 安装依赖
|
|
run: |-
|
|
python -m pip install pdm
|
|
python -m pip install pytest==8.3.2
|
|
pdm init
|
|
pdm install
|
|
|
|
|
|
- name: 运行测试
|
|
run: python -m pytest
|