Implement Github Actions Test

This commit is contained in:
洛水居室 2022-09-12 16:24:04 +08:00
parent c326d52fe1
commit 3fa18ef06a
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

26
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Test
on:
pull_request:
branches:
- 'test'
- 'test/**'
- 'wiki/**'
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 dependencies
run: |
pip install --upgrade poetry
poetry install
poetry install --extras test
- name: Test with pytest
run: |
pytest