Skip to content

Commit

Permalink
Add pytest workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pykong committed Nov 23, 2023
1 parent 3886f6b commit 5acc4da
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Run Pytest on Pull Requests

on:
pull_request:
branches: [main]

jobs:
pytest:
runs-on: ubuntu-latest

strategy:
matrix:
directory: ['game', 'monitor']

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11

- name: Install Poetry
run: curl -sSL https://install.python-poetry.org | python3 -

- name: Install dependencies
run: |
cd ${{ matrix.directory }}
python -m pip install --upgrade pip
poetry install
- name: Run pytest
run: |
cd ${{ matrix.directory }}
poetry run pytest

0 comments on commit 5acc4da

Please sign in to comment.