Do not assume tube_nr=1 if there is only 1 tube #555
Workflow file for this run
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: hydropandas | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
- dev | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
include: | |
- name: Test suite with py312-ubuntu | |
python: "3.12" | |
os: ubuntu-latest | |
toxenv: py312 | |
- name: Test suite with py311-ubuntu | |
python: "3.11" | |
os: ubuntu-latest | |
toxenv: py311 | |
- name: Test suite with py310-ubuntu | |
python: "3.10" | |
os: ubuntu-latest | |
toxenv: py310 | |
- name: Formatting with black + isort | |
python: "3.9" | |
os: ubuntu-latest | |
toxenv: format | |
- name: Linting with flake8 + ruff | |
python: "3.9" | |
os: ubuntu-latest | |
toxenv: lint | |
- name: Test suite for notebooks and coverage | |
python: "3.9" | |
os: ubuntu-latest | |
toxenv: notebooks | |
name: ${{ matrix.name }} | |
env: | |
# Color Output | |
# Rich (pip) | |
FORCE_COLOR: 1 | |
# Tox | |
PY_COLORS: 1 | |
# Pytest | |
PYTEST_ADDOPTS: "--color=yes" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
check-latest: true | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install tox | |
- name: Setup tox environment | |
run: tox -e ${{ matrix.toxenv }} --notest | |
- name: Test | |
run: tox -e ${{ matrix.toxenv }} --skip-pkg-install | |
- name: Run codacy-coverage-reporter | |
if: ${{ matrix.toxenv == 'notebooks' && github.repository == 'ArtesiaWater/hydropandas' && success() }} | |
uses: codacy/codacy-coverage-reporter-action@master | |
with: | |
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
coverage-reports: coverage.xml |