remove print statement #103
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: ci | |
# Controls when the workflow will run | |
on: | |
# Trigger the workflow on all pushes | |
push: | |
branches: | |
- '**' | |
tags: | |
- '**' | |
# Trigger the workflow on all pull requests | |
pull_request: ~ | |
# Allow workflow to be dispatched on demand | |
workflow_dispatch: ~ | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v3 | |
- 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 | |
pip install --editable ".[dev]" | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Lint with ruff | |
run: | | |
pip install ruff | |
# stop the build if there are Python syntax errors or undefined names | |
ruff --format=github --select=E9,F63,F7,F82 . | |
# default set of ruff rules with GitHub Annotations | |
# ruff --format=github . | |
- name: Test with pytest | |
run: | | |
pip install pytest | |
pytest | |
# # Calls a reusable CI workflow to qa, test & deploy the current repository. | |
# # It will pull in all needed dependencies and produce a code coverage report on success. | |
# # If all checks were successful and a new release tag pushed, the package will be published on PyPI. | |
# # In case the job fails, a message will be posted to a Microsoft Teams channel. | |
# ci: | |
# name: ci | |
# uses: ecmwf-actions/reusable-workflows/.github/workflows/ci-python.yml@v1 | |
# with: | |
# codecov_upload: true | |
# # notify_teams: true | |
# build_package_inputs: | | |
# dependencies: | | |
# ecmwf/ecbuild | |
# ecmwf/eckit | |
# ecmwf/odc | |
# dependency_branch: develop | |
# self_build: false | |
# # secrets: | |
# # pypi_username: ${{ secrets.PYPI_USERNAME }} | |
# # pypi_password: ${{ secrets.PYPI_PASSWORD }} | |
# # incoming_webhook: ${{ secrets.MS_TEAMS_INCOMING_WEBHOOK }} |