Skip to content

Commit 0edf6c9

Browse files
authored
Moved over continuous integration and deployment from travis-ci.org to GitHub Actions (#1003)
* Added support for marginal test results to the protos. * Added continuous integration and deployment via GitHub Action instead of travis-ci.org
1 parent 4646aa6 commit 0edf6c9

File tree

6 files changed

+67
-40
lines changed

6 files changed

+67
-40
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Continuous Integration
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: ['3.6', '3.7']
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v3
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
python -m pip install tox tox-gh-actions
27+
pip install coveralls
28+
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.6.1/protoc-3.6.1-linux-x86_64.zip
29+
unzip protoc-3.6.1-linux-x86_64.zip
30+
sudo cp bin/protoc /usr/bin/protoc && sudo chmod 777 /usr/bin/protoc
31+
sudo cp -r include/. /usr/include && sudo chmod -R +r /usr/include/google
32+
protoc --version
33+
sudo apt-get install -y libusb-1.0-0-dev libprotobuf-dev swig
34+
- name: Test with tox
35+
run: tox
36+
- name: Publish to coveralls.io
37+
env:
38+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
39+
run: coveralls --service=github
40+
- name: Publish to PyPI
41+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
42+
uses: pypa/gh-action-pypi-publish@release/v1
43+
with:
44+
user: __token__
45+
password: gWriMCwCITTFTXKl4k7/eVYpx07N/z2zUGxZ3lme/pl6mRfJvj8QbpvnJAQGNn5VEZfWuuKveCoAySfrLcojV8RJuaRLcAnIuJInZt/Cf8QXmHLm7LK9xAnKofi++RRqk0B81CwbKjq3/JhMmygvSjSR5vRDogo3KB2GHRnE3HQUSy3IlBeZDDDpr7LcNcNVSr/z9TXC1/UA05erhUvRWuMiDI9AKqvPZ80K+GlzWEPSxkeFotC/i7PyrZfJWEzVPrgt1iFOK9lNmh5lKyQ4do0nuVHAZFcxsMb+6uBek7WNgmUOUAhOTHa/AM//b8qIhVzSPFc8tQlqdyN6lH8l0SbbzX7BkKNqS1hL5XzLJ+/VZgBbSUDWSDq08Dmu4snRvxPZc6RzfmQKQ0H0esOKzBwS8dIAQDEVwj13WuCnV7G0yHD2yRXmyWbLcbhDW7rNwC7VsyenPA9SwJ9vrCRoCuB3+zKERAya47dgflFHtxITHVdDR/tJ7h83YiEuVp/GkdOOet2gHMO5HyqoipaXryg7fu7JAhZ727l9t8PGWWKwKE0GBL7/IgrAIhR3GuYK33fInB2SpSoAmoxipfU31TpO1Xb+WT+yQwXft+wFYK6DH65yhaedHqKnxu7ph2ZE36XB4qY84sbvE/GgWF6KJjXoA1RTxmohI97i2dmTQJI=
46+
skip_existing: true

.travis.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# OpenHTF
44
The open-source hardware testing framework.
55

6-
[![Build Status](https://travis-ci.org/google/openhtf.svg?branch=master)](https://travis-ci.org/google/openhtf)
6+
[![Build Status](https://github.com/google/openhtf/actions/workflows/build_and_deploy.yml/badge.svg?branch=master)](https://github.com/google/openhtf/actions?branch=master)
77
[![Coverage Status](https://coveralls.io/repos/google/openhtf/badge.svg?branch=master&service=github)](https://coveralls.io/github/google/openhtf?branch=master)
88

99
[Issue Stats](http://issuestats.com/github/google/openhtf)

openhtf/output/proto/mfg_event.proto

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ message Measurement {
8585
optional double numeric_minimum = 12;
8686
optional double numeric_maximum = 13;
8787

88+
// Fields to determine numeric marginality which are used in RangeValidators.
89+
optional double numeric_marginal_minimum = 25;
90+
optional double numeric_marginal_maximum = 26;
91+
8892
// If this parameter is text then fill in these fields
8993
optional string text_value = 14;
9094
// This field may be a regular expression describing the expected value
@@ -100,9 +104,11 @@ message Measurement {
100104
// Created for visualization by UIs that don't support certain fancy
101105
// parameters. UIs that do support them should hide these parameters.
102106
optional string associated_attachment = 21;
103-
// Next tag = 24
107+
// Next tag = 27
104108

105109
extensions 5000 to 5199;
110+
111+
reserved 24;
106112
}
107113

108114
// A parameter which is extra information from a test run. These values are not

openhtf/output/proto/test_runs.proto

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ enum Status {
7575
REWORK = 12;
7676
SCRAP = 13;
7777
DEBUG = 14;
78+
MARGINAL_PASS = 15;
7879
}
7980

8081

@@ -127,6 +128,10 @@ message TestParameter {
127128
optional double numeric_minimum = 12;
128129
optional double numeric_maximum = 13;
129130

131+
// Fields to determine numeric marginality which are used in RangeValidators.
132+
optional double numeric_marginal_minimum = 26;
133+
optional double numeric_marginal_maximum = 27;
134+
130135
// If this parameter is text then fill in these fields
131136
optional string text_value = 14;
132137
// This field may be a regular expression describing the expected value
@@ -139,9 +144,11 @@ message TestParameter {
139144
// Created for visualization by UIs that don't support certain fancy
140145
// parameters. UIs that do support them should hide these parameters.
141146
optional string associated_attachment = 21;
142-
// Next tag = 22
147+
// Next tag = 28
143148

144149
extensions 5000 to 5199;
150+
151+
reserved 25;
145152
}
146153

147154

tox.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
[tox]
22
envlist = py36,py37
33

4+
[gh-actions]
5+
python =
6+
3.6: py36
7+
3.7: py37
8+
49
[testenv]
510
deps = -r{toxinidir}/test_reqs.txt
611
commands = {envbindir}/python setup.py build_proto

0 commit comments

Comments
 (0)