Skip to content

Commit

Permalink
Add self-hosted runners for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp authored Nov 16, 2023
1 parent 99a08d5 commit 0b4afa2
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/example-13.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: "Example 13: Self-hosted"

on:
pull_request: # temporary, remove after pipeline is setup to save resources
branches:
- "main"
- "develop"
push:
branches:
- "develop"
- "main"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

jobs:
example-1:
# prevent cronjobs from running on forks
if:
(github.event_name == 'schedule' && github.repository ==
'conda-incubator/setup-miniconda') || (github.event_name != 'schedule')
name: Ex1 (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ['cirun-openstack-cpu-small--${{ github.run_id }}', 'linux', 'x64', 'self-hosted']
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
python-version: ["3.9"]
steps:
- uses: actions/checkout@v3
- uses: ./
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Conda info
shell: bash -el {0}
run: conda info
- name: Conda list
shell: pwsh
run: conda list
- name: Environment
shell: bash -el {0}
run: printenv | sort

0 comments on commit 0b4afa2

Please sign in to comment.