Exercise stop_on_measurement_fail option later, after multidims have been validated #374
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
# Copyright 2022 Google LLC | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Continuous Integration | |
on: [push, pull_request] | |
jobs: | |
build_and_test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.9", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install tox tox-gh-actions | |
wget https://github.com/protocolbuffers/protobuf/releases/download/v21.6/protoc-21.6-linux-x86_64.zip | |
unzip protoc-21.6-linux-x86_64.zip | |
sudo cp bin/protoc /usr/bin/protoc && sudo chmod 777 /usr/bin/protoc | |
sudo cp -r include/. /usr/include && sudo chmod -R +r /usr/include/google | |
protoc --version | |
sudo apt-get install -y libusb-1.0-0-dev libprotobuf-dev swig libevent-dev | |
- name: Build protobufs | |
run: python setup.py build_proto | |
- name: Test with tox | |
run: tox | |
- name: Publish to Coveralls with GitHub Action | |
uses: coverallsapp/[email protected] | |
with: | |
parallel: true | |
flag-name: python-${{ matrix.python-version }} | |
web_ui: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: openhtf/output/web_gui | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
- run: npm install | |
- run: npm run build | |
finish: | |
needs: build_and_test | |
if: ${{ always() }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Coveralls Finished | |
uses: coverallsapp/github-action@v2 | |
with: | |
parallel-finished: true |