PaiGram/.github/workflows/python-app.txt

27 lines
588 B
Plaintext
Raw Normal View History

2022-05-30 09:52:59 +00:00
name: Run Python Tests
on:
push:
2022-05-30 09:55:33 +00:00
branches: [ dev, main ]
2022-05-30 09:52:59 +00:00
pull_request:
2022-05-30 09:55:33 +00:00
branches: [ dev, main ]
2022-05-30 09:52:59 +00:00
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
2022-05-30 09:58:04 +00:00
with:
python-version: "3.10"
2022-05-30 09:52:59 +00:00
- 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