mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 04:35:49 +00:00
🎨 移除多余 CI 配置文件并修改触发目录
This commit is contained in:
parent
50de1f3555
commit
5047663a82
35
.github/ workflows/test.yml
vendored
35
.github/ workflows/test.yml
vendored
@ -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
|
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -9,6 +9,8 @@ on:
|
||||
pull_request:
|
||||
types: [ opened, synchronize ]
|
||||
paths:
|
||||
- 'modules/apihelper/**'
|
||||
- 'modules/wiki/**'
|
||||
- 'tests/**'
|
||||
|
||||
jobs:
|
||||
|
Loading…
Reference in New Issue
Block a user