Update the TBF format to take the number of stands in after an unders… #939
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: "Build and Test" | |
"on": [push, pull_request] | |
jobs: | |
pre_build: | |
runs-on: ubuntu-20.04 | |
outputs: | |
should_skip: ${{ steps.skip_check.outputs.should_skip }} | |
steps: | |
- id: skip_check | |
uses: fkirc/skip-duplicate-actions@v5 | |
with: | |
concurrent_skipping: 'same_content' | |
skip_after_successful_duplicate: 'true' | |
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]' | |
build: | |
needs: pre_build | |
if: ${{ needs.pre_build.outputs.should_skip != 'true' }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [self-hosted, ubuntu-latest, macos-latest] | |
python-version: ['3.8', '3.10'] | |
include: | |
- os: ubuntu-20.04 | |
python-version: '2.7' | |
- os: ubuntu-20.04 | |
python-version: '3.6' | |
- os: macos-latest | |
python-version: '3.6' | |
fail-fast: false | |
steps: | |
- name: "Software Install - Ubuntu" | |
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-20.04' || matrix.os == 'self-hosted' }} | |
run: | | |
sudo apt-get update && \ | |
sudo apt-get install -y \ | |
build-essential \ | |
ca-certificates \ | |
curl \ | |
exuberant-ctags \ | |
gfortran \ | |
git \ | |
libhwloc-dev \ | |
libopenblas-dev \ | |
pkg-config \ | |
software-properties-common | |
- name: "Software Install - MacOS" | |
if: ${{ matrix.os == 'macos-latest' }} | |
run: | | |
brew install \ | |
curl \ | |
ctags-exuberant \ | |
gawk \ | |
gnu-sed \ | |
hwloc \ | |
pkg-config | |
- uses: actions/setup-python@v4.3.0 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: "Software Install - Python" | |
run: python -m pip install \ | |
setuptools \ | |
numpy \ | |
matplotlib \ | |
contextlib2 \ | |
simplejson \ | |
pint \ | |
graphviz \ | |
ctypesgen==1.0.2 \ | |
coverage | |
- name: "Software Install - Python, part 2" | |
if: ${{ matrix.os == 'self-hosted' && matrix.python-version != '2.7' }} | |
# Setting CPLUS_INCLUDE_PATH helps pycuda find the right | |
# Python header files <pyconfig.h> to use with its embedded | |
# subset of Boost. | |
env: | |
CPLUS_INCLUDE_PATH: "${{ env.pythonLocation }}/include/python\ | |
${{ matrix.python-version }}" | |
run: python -m pip install \ | |
cupy-cuda12x \ | |
pycuda \ | |
numba \ | |
jupyterlab \ | |
jupyter_client \ | |
nbformat \ | |
nbconvert | |
- uses: actions/checkout@v3 | |
- name: "Build and Install" | |
run: | | |
./configure | |
make -j all | |
sudo make install | |
- name: Test | |
env: | |
LD_LIBRARY_PATH: /usr/local/lib:${{ env.LD_LIBRARY_PATH }} | |
run: | | |
python -m pip install scipy | |
cd test | |
bash ./download_test_data.sh | |
python -c "from bifrost import telemetry; telemetry.disable()" | |
coverage run --source=bifrost.ring,bifrost,bifrost.pipeline \ | |
-m unittest discover | |
coverage xml | |
- name: "Upload Coverage" | |
env: | |
UNITTEST_OS: ${{ matrix.os }} | |
UNITTEST_PY: ${{ matrix.python-version }} | |
if: ${{ matrix.os == 'self-hosted' && matrix.python-version == '3.8' }} | |
uses: codecov/codecov-action@v2 | |
with: | |
directory: ./test/ | |
env_vars: UNITTEST_OS,UNITTEST_PY | |
fail_ci_if_error: false | |
verbose: true |