Skip to content

Ena receipt

Ena receipt #19

Workflow file for this run

name: Test MARS
on:
pull_request:
paths:
-'mars-cli/**'
jobs:
test-mars:
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
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
pip install black
pip install ruff
- name: Test python code
run: pytest --doctest-modules --cov=mars_lib tests/ --cov-fail-under=80
- name: Formatting
run: black --check mars_lib/
- name: Linting
run: ruff check mars_lib/