mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 04:35:49 +00:00
添加 action
This commit is contained in:
parent
19cf972094
commit
8442ee56c4
27
.github/ workflows/python-app.yml
Normal file
27
.github/ workflows/python-app.yml
Normal file
@ -0,0 +1,27 @@
|
||||
name: Run Python Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ dev ]
|
||||
pull_request:
|
||||
branches: [ dev ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python 3.10
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: "3.10"
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
- name: Run tests with pytest
|
||||
run: |
|
||||
python -m unittest test/service/test_game.py
|
@ -34,4 +34,4 @@ class TestGame(IsolatedAsyncioTestCase):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main("TestGame")
|
||||
unittest.main()
|
||||
|
Loading…
Reference in New Issue
Block a user