From 0b4afa2732624e4e409f73655363bfed402afe77 Mon Sep 17 00:00:00 2001 From: jaimergp Date: Thu, 16 Nov 2023 18:01:31 +0100 Subject: [PATCH 1/6] Add self-hosted runners for testing --- .github/workflows/example-13.yml | 44 ++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/example-13.yml diff --git a/.github/workflows/example-13.yml b/.github/workflows/example-13.yml new file mode 100644 index 00000000..f8eacc9c --- /dev/null +++ b/.github/workflows/example-13.yml @@ -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 From f4868c2d2b7a2ef4bdf16b60e24157d3fdf2d902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Pe=C3=B1a-Castellanos?= Date: Fri, 17 Nov 2023 11:32:12 -0500 Subject: [PATCH 2/6] Update example-13.yml --- .github/workflows/example-13.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/example-13.yml b/.github/workflows/example-13.yml index f8eacc9c..1847b724 100644 --- a/.github/workflows/example-13.yml +++ b/.github/workflows/example-13.yml @@ -33,6 +33,10 @@ jobs: with: auto-update-conda: true python-version: ${{ matrix.python-version }} + - uses: conda-incubator/setup-miniconda@v2 + with: + miniconda-version: "latest" + activate-environment: foo - name: Conda info shell: bash -el {0} run: conda info From f169bd5db7b66f444ad4f19316eb264a30a2a4c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Pe=C3=B1a-Castellanos?= Date: Fri, 17 Nov 2023 11:35:24 -0500 Subject: [PATCH 3/6] Update example-13.yml --- .github/workflows/example-13.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/example-13.yml b/.github/workflows/example-13.yml index 1847b724..fae35608 100644 --- a/.github/workflows/example-13.yml +++ b/.github/workflows/example-13.yml @@ -31,11 +31,8 @@ jobs: - uses: actions/checkout@v3 - uses: ./ with: - auto-update-conda: true + miniforge-version: "latest" python-version: ${{ matrix.python-version }} - - uses: conda-incubator/setup-miniconda@v2 - with: - miniconda-version: "latest" activate-environment: foo - name: Conda info shell: bash -el {0} From f7225b81d585a305e79202da90896b7808315dce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Pe=C3=B1a-Castellanos?= Date: Fri, 17 Nov 2023 11:41:42 -0500 Subject: [PATCH 4/6] Update example-13.yml --- .github/workflows/example-13.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/example-13.yml b/.github/workflows/example-13.yml index fae35608..1bb60f60 100644 --- a/.github/workflows/example-13.yml +++ b/.github/workflows/example-13.yml @@ -37,9 +37,6 @@ jobs: - name: Conda info shell: bash -el {0} run: conda info - - name: Conda list - shell: pwsh - run: conda list - - name: Environment + - name: Conda info shell: bash -el {0} - run: printenv | sort + run: conda list From 5b8c67093c497a859525d036eebb9bc968d40d2a Mon Sep 17 00:00:00 2001 From: Daniel Bast <2790401+dbast@users.noreply.github.com> Date: Thu, 23 Nov 2023 14:55:32 +0100 Subject: [PATCH 5/6] Apply `npm run format` --- .github/workflows/example-13.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/example-13.yml b/.github/workflows/example-13.yml index 1bb60f60..ea437140 100644 --- a/.github/workflows/example-13.yml +++ b/.github/workflows/example-13.yml @@ -1,9 +1,9 @@ name: "Example 13: Self-hosted" on: - pull_request: # temporary, remove after pipeline is setup to save resources + pull_request: # temporary, remove after pipeline is setup to save resources branches: - - "main" + - "main" - "develop" push: branches: @@ -11,7 +11,8 @@ on: - "main" concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + group: + ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} cancel-in-progress: true jobs: @@ -21,7 +22,13 @@ jobs: (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'] + runs-on: + [ + "cirun-openstack-cpu-small--${{ github.run_id }}", + "linux", + "x64", + "self-hosted", + ] timeout-minutes: 30 strategy: fail-fast: false From 3de692e134337996ffbe2ab6562ed2efa82dca86 Mon Sep 17 00:00:00 2001 From: Daniel Bast <2790401+dbast@users.noreply.github.com> Date: Thu, 23 Nov 2023 14:56:58 +0100 Subject: [PATCH 6/6] Update example-13.yml --- .github/workflows/example-13.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/example-13.yml b/.github/workflows/example-13.yml index ea437140..44123716 100644 --- a/.github/workflows/example-13.yml +++ b/.github/workflows/example-13.yml @@ -16,12 +16,12 @@ concurrency: cancel-in-progress: true jobs: - example-1: + example-13: # 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 }}) + name: Ex13 (${{ matrix.python-version }}, ${{ matrix.os }}) runs-on: [ "cirun-openstack-cpu-small--${{ github.run_id }}",