Fix pixi install on self-hosted runners #2
This file contains 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: Tests (Forks) | |
on: | |
pull_request_target: | |
types: [labeled] | |
concurrency: | |
group: test-forks-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
if: ${{ contains(github.event.pull_request.labels.*.name, 'safe to test') && github.event.pull_request.head.repo.fork }} | |
strategy: | |
fail-fast: false | |
matrix: | |
test_group: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- uses: anybody/setup-anybody@main | |
name: Install AnyBody | |
with: | |
anybody-version: "7.5.0" | |
anybody-version-suffix: "Beta" | |
- uses: prefix-dev/[email protected] | |
with: | |
cache: false | |
- name: Run AMMR tests | |
run: | | |
cd Tests | |
pixi run pytest -n auto --dist worksteal ` | |
--splits 10 --group ${{ matrix.test_group }} --splitting-algorithm=least_duration ` | |
--durations=10 ` | |
--runslow | |
env: | |
RLM_LICENSE: ${{ secrets.LICENSE_SERVER }} | |
RLM_LICENSE_PASSWORD: ${{ secrets.LICENSE_PASSWORD }} |