Skip to content

Commit 06ce5c7

Browse files
authored
github: Use ni/python-actions (#718)
1 parent f1120c0 commit 06ce5c7

File tree

3 files changed

+6
-20
lines changed

3 files changed

+6
-20
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,13 @@ jobs:
1212
- name: Check out repo
1313
uses: actions/checkout@v4
1414
- name: Set up Python
15-
uses: actions/setup-python@v5
15+
uses: ni/python-actions/setup-python@v0.1.0
1616
id: setup-python
1717
with:
1818
# The codegen scripts require Python 3.9 or later.
1919
python-version: "3.9"
2020
- name: Set up Poetry
21-
uses: Gr1N/setup-poetry@v9
22-
with:
23-
poetry-version: "1.8.3"
24-
- name: Check Poetry version
25-
run: poetry --version
21+
uses: ni/python-actions/[email protected]
2622
- name: Cache virtualenv (all extras)
2723
uses: actions/cache@v4
2824
with:

.github/workflows/generate_docs.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,10 @@ jobs:
1212
- name: Check out repo
1313
uses: actions/checkout@v4
1414
- name: Set up Python
15-
uses: actions/setup-python@v5
15+
uses: ni/python-actions/setup-python@v0.1.0
1616
id: setup-python
17-
with:
18-
python-version: "3.11"
1917
- name: Set up Poetry
20-
uses: Gr1N/setup-poetry@v9
21-
with:
22-
poetry-version: "1.8.3"
23-
- name: Check Poetry version
24-
run: poetry --version
18+
uses: ni/python-actions/[email protected]
2519
- name: Cache virtualenvs
2620
uses: actions/cache@v4
2721
with:

.github/workflows/run_unit_tests.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,11 @@ jobs:
1919
- name: Check out repo
2020
uses: actions/checkout@v4
2121
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v5
22+
uses: ni/python-actions/setup-python@v0.1.0
2323
with:
2424
python-version: ${{ matrix.python-version }}
2525
- name: Set up Poetry
26-
uses: Gr1N/setup-poetry@v9
27-
with:
28-
poetry-version: "1.8.3"
29-
- name: Check Poetry version
30-
run: poetry --version
26+
uses: ni/python-actions/[email protected]
3127
- name: Restore cached virtualenv (main only)
3228
uses: actions/cache/restore@v4
3329
id: restore-nidaqmx-main-only

0 commit comments

Comments
 (0)