Merge branch '831-choisir-le-type-d-interpolation-pour-resampling' in… #7
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: CARS | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.10"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools | |
pip install --upgrade cython numpy | |
pip install --upgrade numba | |
pip install .[dev,docs,notebook,pandora_mccnn] | |
pip list | |
- name: Unit Tests | |
run: | | |
pytest -m "unit_tests" -o log_cli=true -o log_cli_level=INFO | |
- name: Lint Tests | |
run: | | |
echo "Lint test" | |
isort --check cars tests | |
black --check cars tests | |
flake8 cars tests | |
pylint cars tests --rcfile=.pylintrc --output-format=parseable | tee pylint-report.txt # pipefail to propagate pylint exit code in bash | |
- name: Notebooks Tests | |
run: | | |
pytest -m "notebook_tests" -o log_cli=true -o log_cli_level=INFO | |
- name: End2end Tests | |
run: | | |
pytest -m "end2end_tests" -o log_cli=true -o log_cli_level=INFO | |
- name: Create source distribution | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |
run: | | |
python -m build --sdist | |
- name: Publish package on pypi | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} |