Skip to content

Commit

Permalink
add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
szsdk committed Mar 3, 2024
1 parent c73829d commit c4805e0
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/run_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Run Unit Test via Pytest

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
- 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 ".[tests]"
- name: Lint with Ruff
run: |
pip install ruff
ruff check --target-version=py310 .
continue-on-error: true
- name: Test with pytest
run: |
pytest --cov emcfile -xs .
- name: Generate Coverage Report
run: |
coverage report -m

0 comments on commit c4805e0

Please sign in to comment.