Ena receipt #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |