improved exec and run monitoring #21
This file contains hidden or 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: Integration Tests | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [main] | |
| jobs: | |
| unit-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.13' | |
| - run: pip install -e . | |
| - run: python -m unittest discover tests/ -v | |
| linux-integration: | |
| runs-on: [self-hosted, linux] | |
| needs: unit-tests | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| device: [ESP32] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install package | |
| run: $HOME/actions-runner/.venv/bin/pip install -e . | |
| - name: Integration tests (${{ matrix.device }}) | |
| run: | | |
| export PATH="$HOME/actions-runner/.venv/bin:$PATH" | |
| export MPYTOOL_TEST_PORT_RW="$(cat ~/actions-runner/.config/mpytool/${{ matrix.device }})" | |
| python -m unittest tests.test_integration tests.test_cli -v | |
| win-integration: | |
| runs-on: [self-hosted, windows] | |
| needs: unit-tests | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| device: [ESP32S3] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install package | |
| run: C:\actions-runner\.venv\Scripts\pip install -e . | |
| shell: cmd | |
| - name: Integration tests (${{ matrix.device }}) | |
| run: | | |
| set PATH=C:\actions-runner\.venv\Scripts;%PATH% | |
| set /p MPYTOOL_TEST_PORT_RW=<C:\actions-runner\.config\mpytool\${{ matrix.device }} | |
| python -m unittest tests.test_integration tests.test_cli -v | |
| shell: cmd |