Skip to content

Commit

Permalink
run pytest on push
Browse files Browse the repository at this point in the history
  • Loading branch information
MusicalNinjaDad committed Nov 15, 2023
1 parent 47f5426 commit a88ec0a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: |
pip install pytest pytest-cov
pytest tests.py --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
2 changes: 2 additions & 0 deletions test/test_GitHubActions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_pass():
assert True

0 comments on commit a88ec0a

Please sign in to comment.