Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fixed funding errors #15

fixed funding errors

fixed funding errors #15

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install lint dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Ruff lint
run: ruff check .
- name: Ruff format (check)
run: ruff format --check .
- name: Black (check)
run: black --check .
typecheck:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install mypy dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: mypy
run: mypy fluxsim
tests:
needs: [lint, typecheck]
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install test dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: pytest with coverage
run: pytest --cov=fluxsim --cov-report=xml --cov-report=term
- name: Upload coverage to Codecov
if: matrix.python-version == '3.11'
uses: codecov/codecov-action@v5
with:
files: ./coverage.xml
flags: unittests
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
slug: logstr/Fluxsim