Unverified Commit 8e6f93f7 authored by Silvano Cerza's avatar Silvano Cerza Committed by GitHub

[skip changelog] Split CI execution of integration tests (#1526)

* Split CI execution of integration tests

* Make Github workflows runners cry

* Different approach
parent 1df5cb8e
from pathlib import Path
import json
if __name__ == "__main__":
import sys
tests_path = sys.argv[1]
test_files = [str(f) for f in Path(tests_path).glob("test_*.py")]
print(json.dumps(test_files))
......@@ -57,16 +57,30 @@ jobs:
echo "::set-output name=result::$RESULT"
test:
tests-collector:
runs-on: ubuntu-latest
needs: run-determination
if: needs.run-determination.outputs.result == 'true'
outputs:
tests-data: ${{ steps.collection.outputs.tests-data }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Collect tests
id: collection
run: |
echo "::set-output name=tests-data::$(python .github/tools/get_integration_tests.py ./test/)"
test:
needs: tests-collector
strategy:
matrix:
operating-system:
- ubuntu-latest
- windows-latest
- macos-latest
tests: ${{ fromJSON(needs.tests-collector.outputs.tests-data) }}
runs-on: ${{ matrix.operating-system }}
......@@ -97,5 +111,11 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
version: 3.x
- name: Build Arduino CLI
run: task go:build
- name: Install poetry deps
run: task poetry:install-deps
- name: Run integration tests
run: task go:test-integration
run: poetry run pytest ${{ matrix.tests }}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment