Skip to content

Added random sampling #86

Added random sampling

Added random sampling #86

Workflow file for this run

name: build
# Controls when the action will run
on: [push, pull_request]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
tests:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{matrix.python-version}}
uses: actions/setup-python@v5
with:
python-version: ${{matrix.python-version}}
cache: 'pip'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
# Install package with dev dependencies
pip install -e ".[dev]"
pip list
- name: Run tests
run: |
pytest --cov-config=.coveragerc --cov=bsym --cov-report lcov
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v2.3.6
with:
path-to-lcov: ./coverage.lcov
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true
flag-name: python-${{ matrix.python-version }}
- name: Static type checking
run: |
mypy bsym
# This job finalizes the parallel coverage reports
finish:
needs: tests
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2.3.6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true