Skip to content

Using correct codecov badge. #10

Using correct codecov badge.

Using correct codecov badge. #10

Workflow file for this run

name: Test
on:
push:
branches:
- main
- development
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
jobs:
test-linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install dependencies
run: |
pip install -e ".[dev,docs]"
pip install ruff coverage pytest-cov
- name: Lint with ruff
run: |
ruff check .
ruff format --check .
- name: Test + coverage
run: |
pytest --cov=distributed_resource_optimization --cov-report=xml
- name: Upload coverage
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
test-mac:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install dependencies
run: pip install -e ".[dev]"
- name: Run tests
run: pytest