Test pyfrc isolated mode PR #426
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: dist | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - '*' | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pre-commit/[email protected] | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| # os: ["ubuntu-22.04", "macos-13", "windows-2022"] | |
| os: ["ubuntu-22.04", "ubuntu-24.04"] | |
| python_version: | |
| # - '3.9' | |
| # - '3.10' | |
| # - '3.11' | |
| - '3.12' | |
| # - '3.13' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python_version }} | |
| - name: Install deps | |
| run: | | |
| pip install git+https://github.com/robotpy/pyfrc.git@separate-process | |
| pip install 'robotpy[commands2,romi]<2026.0.0,>=2025.0.0b3' numpy pytest | |
| - name: Set cores to get stored in /cores | |
| run: | | |
| sudo mkdir /cores | |
| sudo chmod 777 /cores | |
| # Core filenames will be of the form executable.pid.timestamp: | |
| sudo bash -c 'echo "/cores/%e.%p.%t" > /proc/sys/kernel/core_pattern' | |
| - name: Run tests | |
| run: | | |
| ulimit -c unlimited | |
| bash run_tests.sh | |
| shell: bash | |
| - uses: actions/upload-artifact@v4 | |
| if: ${{ failure() }} # Run only if something went wrong | |
| with: | |
| name: cores | |
| path: /cores |