Skip to content

Commit 6771774

Browse files
authored
github: Use ni/python-action for python and poetry setup (#56)
- [X] This contribution adheres to [CONTRIBUTING.md](https://github.com/ni/nisync-python/blob/main/CONTRIBUTING.md). ### What does this Pull Request accomplish? Use https://github.com/ni/python-actions/ to set up Python and Poetry. ### Why should this Pull Request be merged? Single-source default Python and Poetry versions which align to others NI repo ### What testing has been done? PR Build
1 parent 43aa859 commit 6771774

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,9 @@ jobs:
1212
- name: Check out repo
1313
uses: actions/checkout@v5
1414
- name: Set up Python
15-
uses: actions/setup-python@v5
16-
with:
17-
# The codegen scripts require Python 3.9 or later.
18-
python-version: "3.9"
15+
uses: ni/python-actions/[email protected]
1916
- name: Set up Poetry
20-
uses: Gr1N/setup-poetry@v9
21-
with:
22-
poetry-version: "1.8.3"
17+
uses: ni/python-actions/[email protected]
2318
- name: Check Poetry version
2419
run: poetry --version
2520
- name: Install dependencies

.github/workflows/run_unit_tests.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,11 @@ jobs:
1919
- name: Check out repo
2020
uses: actions/checkout@v5
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"
26+
uses: ni/python-actions/[email protected]
2927
- name: Check Poetry version
3028
run: poetry --version
3129
- name: Install main package dependencies

0 commit comments

Comments
 (0)