🎨 修复CI文件

This commit is contained in:
xtaodada 2022-09-12 17:24:33 +08:00 committed by 洛水居室
parent 13e9e2bf1c
commit 20bd2a380d
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -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