Add Binary Segmentation type algorithms #110
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: tests | |
on: [push, pull_request] | |
jobs: | |
code-quality: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
- id: file_changes | |
uses: trilom/[email protected] | |
with: | |
output: " " | |
- name: List changed files | |
run: echo '${{ steps.file_changes.outputs.files}}' | |
- uses: pre-commit/[email protected] | |
with: | |
extra_args: --files ${{ steps.file_changes.outputs.files}} | |
- name: Check for missing init files | |
run: build_tools/fail_on_missing_init_files.sh | |
shell: bash | |
pytests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install .[dev] | |
python -m pip install pytest | |
- name: Disable numba JIT | |
run: | | |
echo "NUMBA_DISABLE_JIT=1" >> $GITHUB_ENV | |
- name: Test with pytest | |
run: | | |
pytest --cov --cov-report=xml | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |