1515
1616env :
1717 VAULT_ADDR : https://vault.eng.aserto.com/
18-
18+ GO_VERSION : " 1.22 "
1919
2020jobs :
2121 test :
2222 name : Run test
2323 runs-on : ubuntu-latest
2424 steps :
2525 - name : Read Configuration
26- uses : hashicorp/vault-action@v2.7.3
26+ uses : hashicorp/vault-action@v3
2727 id : vault
2828 with :
2929 url : ${{ env.VAULT_ADDR }}
3939 git config --global url."git@github.com:".insteadOf https://github.com/
4040
4141 - name : Checkout Repo
42- uses : actions/checkout@v2
42+ uses : actions/checkout@v4
4343
4444 - name : Set up Homebrew
4545 uses : Homebrew/actions/setup-homebrew@master
@@ -48,20 +48,20 @@ jobs:
4848 run : brew tap aserto-dev/tap && brew install aserto-dev/tap/topaz && topaz install
4949
5050 - name : Use python 3.9
51- uses : actions/setup-python@v4
51+ uses : actions/setup-python@v5
5252 with :
53- python-version : ' 3.9 '
53+ python-version : ' 3.12 '
5454
5555 - name : Install and configure Poetry
5656 uses : snok/install-poetry@v1
5757 with :
58- version : 1.2.1
58+ version : 1.8.3
5959
6060 - name : Run lint
6161 run : |
6262 poetry install
6363 poetry run pyright .
64-
64+
6565 - name : Run tests
6666 run : |
6767 poetry run pytest -vv
7373 name : Release to pypi
7474 steps :
7575 - name : Read Configuration
76- uses : hashicorp/vault-action@v2.4.1
76+ uses : hashicorp/vault-action@v3
7777 id : vault
7878 with :
7979 url : ${{ env.VAULT_ADDR }}
@@ -83,17 +83,17 @@ jobs:
8383 kv/data/pypi "API_TOKEN" | POETRY_HTTP_BASIC_PYPI_PASSWORD;
8484
8585 - name : Checkout
86- uses : actions/checkout@v3
86+ uses : actions/checkout@v4
8787 with :
8888 fetch-depth : 0
8989
9090 - name : Setup Go
91- uses : actions/setup-go@v2
91+ uses : actions/setup-go@v5
9292 with :
9393 go-version : ${{ env.GO_VERSION }}
9494
9595 - name : Setup caching
96- uses : actions/cache@v2
96+ uses : actions/cache@v4
9797 with :
9898 path : |
9999 ~/.cache/go-build
@@ -119,12 +119,14 @@ jobs:
119119 go run mage.go deps
120120
121121 - name : Set up Python
122- uses : actions/setup-python@v4
122+ uses : actions/setup-python@v5
123123 with :
124- python-version : ' 3.10 '
124+ python-version : ' 3.12 '
125125
126126 - name : Install Poetry
127127 uses : snok/install-poetry@v1
128+ with :
129+ version : 1.8.3
128130
129131 - name : Build and push the python package
130132 env :
0 commit comments