Change dev suite to enforce code quality and logging standards #244
Workflow file for this run
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: CI | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ${{github.ref}}-${{github.head_ref}}-ci | |
| cancel-in-progress: true | |
| jobs: | |
| Lint-Format-Types: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - run: | | |
| python -m pip install --upgrade pip | |
| pip install -e '.[dev]' | |
| - run: ruff format --check . | |
| - run: ruff check . | |
| - run: ty check | |
| Codespell: | |
| needs: Lint-Format-Types | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Clone | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: false | |
| - name: Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Dependencies | |
| run: | | |
| # Install Python packages | |
| python -m pip install --upgrade pip | |
| pip install codespell | |
| - name: Run codespell | |
| run: codespell | |
| Test-Coverage: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - run: | | |
| python -m pip install --upgrade pip | |
| pip install -e '.[dev]' | |
| - run: python -m pytest | |
| Accuracy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - run: | | |
| python -m pip install --upgrade pip | |
| pip install -e . | |
| - run: python tests/test_accuracy.py | |
| API: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - run: | | |
| python -m pip install --upgrade pip | |
| pip install -e . | |
| - run: python tests/test_api.py -v | |
| Source-Docstrings: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - run: | | |
| python -m pip install --upgrade pip | |
| pip install -e . | |
| - run: python tests/test_source_docstrings.py -v | |
| Utilities: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - run: | | |
| python -m pip install --upgrade pip | |
| pip install -e '.[dev]' | |
| - run: python -m pytest tests/test_utilities.py -v | |
| Hydrocarbon-Identification: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - run: | | |
| python -m pip install --upgrade pip | |
| pip install -e '.[dev]' | |
| - run: python -m pytest tests/test_hc_identification.py -v -s | |
| Exporting-Scripts: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - run: | | |
| python -m pip install --upgrade pip | |
| pip install -e . | |
| - run: python tests/test_exporters.py | |