mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2024-11-16 04:45:27 +00:00
🎨 修复CI文件
This commit is contained in:
parent
13e9e2bf1c
commit
20bd2a380d
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
@ -1,11 +1,10 @@
|
||||
name: Test
|
||||
name: test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- '.github/workflows/**'
|
||||
- 'tests/**'
|
||||
pull_request:
|
||||
types: [ opened, synchronize ]
|
||||
@ -21,11 +20,14 @@ jobs:
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: "3.10"
|
||||
- name: Install dependencies
|
||||
- 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: |
|
||||
pytest
|
||||
python -m pytest
|
Loading…
Reference in New Issue
Block a user