@@ -22,26 +22,24 @@ jobs:
2222 env :
2323 PYTHON_VERSION : 3.11 # Use latest
2424 steps :
25- - uses : actions/checkout@v2
26- - uses : actions/setup-python@v2
27- with :
28- python-version : ${{ env.PYTHON_VERSION }}
29- - uses : Gr1N/setup-poetry@v8
30- with :
31- poetry-version : ${{ env.POETRY_VERSION }}
32- # @TODO: This is a workaround for there not being a way to check the lock file
33- # See: https://github.com/python-poetry/poetry/issues/453
25+ - name : Check out repo
26+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
27+ - name : Set up Python
28+ uses : ni/python-actions/setup-python@5286c12d65d90b2ea738bd57d452dc4366497581 # v0.4.1
29+ - name : Set up Poetry
30+ uses : ni/python-actions/setup-poetry@5286c12d65d90b2ea738bd57d452dc4366497581 # v0.4.1
3431 - name : Check for lock changes
3532 run : |
3633 poetry lock --check
37- - uses : actions/cache@v4
34+ - name : Cache virtualenv
35+ uses : actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
3836 with :
39- path : ~/.cache/pypoetry/virtualenvs
40- key : ${{ runner.os }}-poetry -${{ hashFiles('poetry.lock') }}
37+ path : .venv
38+ key : nps- ${{ runner.os }}-py${{ steps.setup-python.outputs.python-version }} -${{ hashFiles('poetry.lock') }}
4139 - name : Install the Package
4240 run : poetry install -vvv
4341 - name : Lint the Code
44- run : poetry run ni-python-styleguide lint
42+ run : poetry run nps lint
4543
4644 tests :
4745 runs-on : ${{ matrix.os }}
@@ -50,18 +48,17 @@ jobs:
5048 os : [macos-latest, windows-latest, ubuntu-latest]
5149 python-version : [3.8, 3.9, '3.10', 3.11, 3.12, 3.13]
5250 steps :
53- - uses : actions/checkout@v2
54- - uses : actions/setup-python@v2
55- with :
56- python-version : ${{ matrix.python-version }}
57-
58- - uses : Gr1N/setup-poetry@v8
59- with :
60- poetry-version : ${{ env.POETRY_VERSION }}
61- - uses : actions/cache@v4
51+ - name : Check out repo
52+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
53+ - name : Set up Python
54+ uses : ni/python-actions/setup-python@5286c12d65d90b2ea738bd57d452dc4366497581 # v0.4.1
55+ - name : Set up Poetry
56+ uses : ni/python-actions/setup-poetry@5286c12d65d90b2ea738bd57d452dc4366497581 # v0.4.1
57+ - name : Cache virtualenv
58+ uses : actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
6259 with :
63- path : ~/.cache/pypoetry/virtualenvs
64- key : ${{ runner.os }}-poetry -${{ hashFiles('poetry.lock') }}
60+ path : .venv
61+ key : nps- ${{ runner.os }}-py${{ steps.setup-python.outputs.python-version }} -${{ hashFiles('poetry.lock') }}
6562 - name : Install the Package
6663 run : poetry install
6764 - name : Run tests
0 commit comments