Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add self-hosted runners for testing #301

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/example-13.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
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-13:
# prevent cronjobs from running on forks
if:
(github.event_name == 'schedule' && github.repository ==
'conda-incubator/setup-miniconda') || (github.event_name != 'schedule')
name: Ex13 (${{ 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:
miniforge-version: "latest"
python-version: ${{ matrix.python-version }}
activate-environment: foo
- name: Conda info
shell: bash -el {0}
run: conda info
- name: Conda info
shell: bash -el {0}
run: conda list
Loading