Skip to content

update: use checkout@v4 and setup-python@v5 #4

update: use checkout@v4 and setup-python@v5

update: use checkout@v4 and setup-python@v5 #4

Workflow file for this run

name: Run Unit Test via Pytest
on: [push]
jobs:
build:
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@v5
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