Skip to content

Commit 386e778

Browse files
committed
Run tests on Windows in Github Actions
1 parent 9c834f0 commit 386e778

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
matrix:
2525
python-version: [ py36, py37, py38, py39, pypy3 ]
2626
package: ["instrumentation", "exporter", "sdkextension", "propagator"]
27-
os: [ ubuntu-latest ]
27+
os: [ ubuntu-latest, windows-latest ]
2828
steps:
2929
- name: Checkout Contrib Repo @ SHA - ${{ github.sha }}
3030
uses: actions/checkout@v2
@@ -49,15 +49,17 @@ jobs:
4949
- name: run tox
5050
run: tox -f ${{ matrix.python-version }}-${{ matrix.package }} -- --benchmark-json=${{ env.RUN_MATRIX_COMBINATION }}-benchmark.json
5151
- name: Find and merge benchmarks
52+
# TODO: fix and enable on windows
5253
# TODO: Add at least one benchmark to every package type to remove this (#249)
53-
if: matrix.package == 'sdkextension'
54+
if: ${{ matrix.package == 'sdkextension' && matrix.os != 'windows-latest' }}
5455
run: >-
5556
jq -s '.[0].benchmarks = ([.[].benchmarks] | add)
5657
| if .[0].benchmarks == null then null else .[0] end'
5758
**/**/tests/*${{ matrix.package }}*-benchmark.json > output.json
5859
- name: Report on benchmark results
60+
# TODO: fix and enable on windows
5961
# TODO: Add at least one benchmark to every package type to remove this (#249)
60-
if: matrix.package == 'sdkextension'
62+
if: ${{ matrix.package == 'sdkextension' && matrix.os != 'windows-latest' }}
6163
uses: rhysd/github-action-benchmark@v1
6264
with:
6365
name: OpenTelemetry Python Benchmarks - Python ${{ env[matrix.python-version ]}} - ${{ matrix.package }}

0 commit comments

Comments
 (0)