Skip to content

Commit 5dffa2f

Browse files
feat: added selfhosted workflow
1 parent 64cb8ca commit 5dffa2f

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

.github/workflows/deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ubuntu-latest, macos-latest, windows-latest]
17-
python-version: [ 3.9, '3.10', '3.11', '3.12']
17+
python-version: ['3.10', '3.11', '3.12']
1818
uses: qiboteam/workflows/.github/workflows/deploy-pip-poetry.yml@v1
1919
with:
2020
os: ${{ matrix.os }}

.github/workflows/selfhosted.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# CI workflow that runs on selfhosted GPU
2+
name: Tests with gpu
3+
4+
on:
5+
pull_request:
6+
types: [labeled]
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.head_ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
build:
14+
if: contains(join(github.event.pull_request.labels.*.name), 'run-on')
15+
uses: qiboteam/workflows/.github/workflows/selfhosted.yml@v1
16+
with:
17+
used-labels: ${{ toJSON(github.event.pull_request.labels.*.name) }}
18+
python-version: "3.10"
19+
artifact-url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
20+
poetry-extras: "--with cuda11,tests"
21+
22+
secrets:
23+
repo_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
os: [ubuntu-latest, macos-latest, windows-latest]
16-
python-version: [3.9, "3.10", "3.11", "3.12"]
16+
python-version: ["3.10", "3.11", "3.12"]
1717
uses: qiboteam/workflows/.github/workflows/rules-poetry.yml@v1
1818
with:
1919
os: ${{ matrix.os }}

0 commit comments

Comments
 (0)