fix typo in nbinom distribution #1488
This file contains hidden or 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: Lint | |
| on: | |
| workflow_dispatch: | |
| push: | |
| paths: | |
| - 'flepimop/gempyor_pkg/**/*.py' | |
| - 'info/**/*' | |
| pull_request: | |
| types: | |
| - edited | |
| - opened | |
| - ready_for_review | |
| - reopened | |
| - synchronize | |
| paths: | |
| - '**/*.py' | |
| - 'info/**/*' | |
| branches: | |
| - main | |
| - dev | |
| jobs: | |
| black-for-python: | |
| runs-on: ubuntu-latest | |
| if: github.event_name != 'pull_request' || github.event.pull_request.draft == false | |
| env: | |
| BLACK_LINE_LENGTH: 92 | |
| BLACK_EXTEND_EXCLUDE: 'flepimop/gempyor_pkg/src/gempyor/steps_rk4.py' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| lfs: true | |
| sparse-checkout: | | |
| * | |
| !documentation/ | |
| sparse-checkout-cone-mode: false | |
| - name: Determine Source | |
| run: | | |
| if [ ${{ github.event_name }} == "push" ]; then | |
| echo "BLACK_SRC=flepimop/gempyor_pkg/" >> $GITHUB_ENV | |
| else | |
| echo "BLACK_SRC=." >> $GITHUB_ENV | |
| fi | |
| - name: Black Formatter Check | |
| uses: psf/black@stable | |
| with: | |
| src: ${{ env.BLACK_SRC }} | |
| options: "--line-length ${{ env.BLACK_LINE_LENGTH }} --extend-exclude '${{ env.BLACK_EXTEND_EXCLUDE }}' --check --verbose" | |
| pylint-for-gempyor: | |
| runs-on: ubuntu-latest | |
| if: github.event_name != 'pull_request' || github.event.pull_request.draft == false | |
| env: | |
| PYLINT_SRC: 'flepimop/gempyor_pkg/src/gempyor' | |
| PYLINT_FAIL_UNDER: '4' | |
| PYLINT_RCFILE: 'flepimop/gempyor_pkg/.pylintrc' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| lfs: true | |
| sparse-checkout: | | |
| flepimop/gempyor_pkg/ | |
| sparse-checkout-cone-mode: false | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install Pylint | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install pylint | |
| - name: Linting with Pylint | |
| run: | | |
| pylint ${{ env.PYLINT_SRC }} \ | |
| --fail-under ${{ env.PYLINT_FAIL_UNDER }} \ | |
| --rcfile ${{ env.PYLINT_RCFILE }} \ | |
| --verbose | |
| check-info-json-schema: | |
| runs-on: ubuntu-latest | |
| if: github.event_name != 'pull_request' || github.event.pull_request.draft == false | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| lfs: true | |
| sparse-checkout: | | |
| info | |
| sparse-checkout-cone-mode: false | |
| - name: Install yq and check-jsonschema | |
| run: | | |
| sudo apt update | |
| sudo apt install snapd | |
| sudo snap install yq | |
| sudo apt install pipx | |
| pipx install check-jsonschema | |
| - name: Convert YAML to JSON | |
| run: | | |
| cd info | |
| for d in $( ls ); do | |
| cd $d | |
| for y in *.yml; do | |
| yq --output-format json $y > ${y%.yml}.json | |
| done | |
| for j in *.json; do | |
| if [[ "$j" != "schema.json" ]]; then | |
| check-jsonschema --verbose --schemafile schema.json $j | |
| fi | |
| done | |
| cd .. | |
| done | |
| cd .. |