🎨 移除多余 CI 配置文件并修改触发目录

This commit is contained in:
洛水居室 2022-09-12 23:20:17 +08:00
parent 50de1f3555
commit 5047663a82
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC
2 changed files with 2 additions and 35 deletions

View File

@ -1,35 +0,0 @@
name: test
on:
push:
branches:
- main
paths:
- 'tests/**'
pull_request:
types: [ opened, synchronize ]
paths:
- 'modules/apihelper/**'
- 'modules/wiki/**'
- 'tests/**'
jobs:
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install poetry
run: |
pip install --upgrade poetry
poetry config virtualenvs.create false
- name: Install dependencies
run: |
poetry install
poetry install --extras test
- name: Test with pytest
run: |
python -m pytest

View File

@ -9,6 +9,8 @@ on:
pull_request:
types: [ opened, synchronize ]
paths:
- 'modules/apihelper/**'
- 'modules/wiki/**'
- 'tests/**'
jobs: