Skip to content

Commit bc9b12c

Browse files
authored
github: Use ni/python-actions (#24)
1 parent 9502081 commit bc9b12c

File tree

3 files changed

+6
-27
lines changed

3 files changed

+6
-27
lines changed

.github/workflows/check_docs.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ on:
44
workflow_call:
55
workflow_dispatch:
66

7-
env:
8-
POETRY_VERSION: 1.8.2
9-
PYTHON_VERSION: 3.11.9
10-
117
jobs:
128
check_docs:
139
name: Check docs
@@ -16,14 +12,10 @@ jobs:
1612
- name: Check out repo
1713
uses: actions/checkout@v4
1814
- name: Set up Python
19-
uses: actions/setup-python@v5
15+
uses: ni/python-actions/setup-python@v0.1.0
2016
id: setup-python
21-
with:
22-
python-version: ${{ env.PYTHON_VERSION }}
2317
- name: Set up Poetry
24-
uses: Gr1N/setup-poetry@v9
25-
with:
26-
poetry-version: ${{ env.POETRY_VERSION }}
18+
uses: ni/python-actions/[email protected]
2719
- name: Check for lock changes
2820
run: poetry check --lock
2921
- name: Cache virtualenv (with docs)

.github/workflows/check_nipanel.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ on:
44
workflow_call:
55
workflow_dispatch:
66

7-
env:
8-
POETRY_VERSION: 1.8.2
9-
PYTHON_VERSION: 3.11.9
10-
117
jobs:
128
check_nipanel:
139
name: Check nipanel
@@ -16,14 +12,10 @@ jobs:
1612
- name: Check out repo
1713
uses: actions/checkout@v4
1814
- name: Set up Python
19-
uses: actions/setup-python@v5
15+
uses: ni/python-actions/setup-python@v0.1.0
2016
id: setup-python
21-
with:
22-
python-version: ${{ env.PYTHON_VERSION }}
2317
- name: Set up Poetry
24-
uses: Gr1N/setup-poetry@v9
25-
with:
26-
poetry-version: ${{ env.POETRY_VERSION }}
18+
uses: ni/python-actions/[email protected]
2719
- name: Check for lock changes
2820
run: poetry check --lock
2921
- name: Cache virtualenv

.github/workflows/run_unit_tests.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ on:
44
workflow_call:
55
workflow_dispatch:
66

7-
env:
8-
POETRY_VERSION: 1.8.2
9-
107
jobs:
118
run_unit_tests:
129
name: Run unit tests
@@ -22,14 +19,12 @@ jobs:
2219
- name: Check out repo
2320
uses: actions/checkout@v4
2421
- name: Set up Python
25-
uses: actions/setup-python@v5
22+
uses: ni/python-actions/setup-python@v0.1.0
2623
id: setup-python
2724
with:
2825
python-version: ${{ matrix.python-version }}
2926
- name: Set up Poetry
30-
uses: Gr1N/setup-poetry@v9
31-
with:
32-
poetry-version: ${{ env.POETRY_VERSION }}
27+
uses: ni/python-actions/[email protected]
3328
- name: Cache virtualenv
3429
uses: actions/cache@v4
3530
with:

0 commit comments

Comments
 (0)