Skip to content

Commit

Permalink
Merge pull request #3 from UCSD-E4E/pytest
Browse files Browse the repository at this point in the history
Pytest
  • Loading branch information
ntlhui authored Apr 26, 2024
2 parents ad25318 + 3a1398d commit 2c51c3f
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: pytest

on: [push, workflow_dispatch]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest coverage
pip install .
- name: Test
run: |
coverage run -m pytest tests/
- name: Generate Report
run: |
coverage html
- name: Upload report
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: |
htmlcov/*

0 comments on commit 2c51c3f

Please sign in to comment.