G
gillian
23d12875be
Some checks failed
Build Sphinx Docs Set / Build Docs (pull_request) Successful in 22s
Test with tox / Test with tox (3.12) (pull_request) Failing after 17s
Test with tox / Test with tox (3.11) (pull_request) Failing after 30s
Build Project / Build Project (3.12) (pull_request) Successful in 1m5s
Build Project / Build Project (3.11) (pull_request) Successful in 1m7s
- Remove py310 from tox envlist, CI matrix, readthedocs, README badge - Move lint env to run on 3.11 in gh-actions mapping - Fix E501 line-too-long in cusum_annotator, energy_detector, parallel_signal_separator, threshold_qualifier (split error string) - Fix E501 in annotate.py: wrap --sample-rate click.option decorators to black style (one arg per line with trailing comma) - Fix C901 in annotate.py: extract _log_separate_start() helper to reduce separate() complexity from 17 to 14 - Fix separate() signature wrapping to match black style Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
name: Build Project
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
project-build-check:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: [ '3.11', '3.12' ]
|
|
|
|
name: Build Project
|
|
steps:
|
|
- name: Check out project
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build project
|
|
run: |
|
|
poetry build
|
|
|
|
- name: Set up Python environment
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Create Python virtual environment
|
|
run: |
|
|
python -m venv .venv
|
|
|
|
- name: Install project in virtual environment
|
|
run: |
|
|
source .venv/bin/activate
|
|
pip install dist/*.whl
|
|
|
|
# In the following step, 'pip list' prints out a list of installed dependencies. This is not required for the
|
|
# build but useful for debugging.
|
|
- name: Check dependency installation
|
|
run: |
|
|
source .venv/bin/activate
|
|
pip check
|
|
pip list
|
|
|
|
- name: Very project import
|
|
run: |
|
|
source .venv/bin/activate
|
|
python -c "import ria_toolkit_oss"
|