Skip to content

split test files

split test files #5

Workflow file for this run

name: build_OSX
on: [push]
jobs:
build:
name: build and test on mac os
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
version: ['3.8', '3.10']
include:
- os: macos-latest
CONDA_OS: osx-64
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v4
- name: Setup conda
uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
auto-update-conda: true
python-version: ${{ matrix.version }}
conda-channels: anaconda
- name: Install conda packages
run: |
conda install h5py -c conda-forge
conda install pytorch::pytorch -c pytorch
- name: Install the package
run: python -m pip install .[test]
- name: Test with single thread
env:
CONDA_PREFIX: /usr/share/miniconda
run: coverage run -m pytest tests
- name: Combine all coverage results
run: coverage combine
- run: coverage report
- name: Coveralls Parallel
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
COVERALLS_FLAG_NAME: python-${{ matrix.version }}
COVERALLS_PARALLEL: true
finish:
needs: build
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true