Skip to content

Commit

Permalink
Update dependencies and github action versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ronenh committed Jul 5, 2024
1 parent 39be415 commit 0c600bc
Show file tree
Hide file tree
Showing 4 changed files with 529 additions and 591 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,16 @@ on:

env:
VAULT_ADDR: https://vault.eng.aserto.com/

GO_VERSION: "1.22"
POETRY_VERSION: "1.8.3"

jobs:
test:
name: Run test
runs-on: ubuntu-latest
steps:
- name: Read Configuration
uses: hashicorp/vault-action@v2.7.3
uses: hashicorp/vault-action@v3
id: vault
with:
url: ${{ env.VAULT_ADDR }}
Expand All @@ -39,7 +40,7 @@ jobs:
git config --global url."[email protected]:".insteadOf https://github.com/
- name: Checkout Repo
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
Expand All @@ -48,14 +49,14 @@ jobs:
run: brew tap aserto-dev/tap && brew install aserto-dev/tap/topaz && topaz install

- name: Use python 3.9
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.12'

- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 1.2.1
version: ${{ env.POETRY_VERSION }}

- name: Run lint
run: |
Expand All @@ -73,7 +74,7 @@ jobs:
name: Release to pypi
steps:
- name: Read Configuration
uses: hashicorp/vault-action@v2.4.1
uses: hashicorp/vault-action@v3
id: vault
with:
url: ${{ env.VAULT_ADDR }}
Expand All @@ -83,17 +84,17 @@ jobs:
kv/data/pypi "API_TOKEN" | POETRY_HTTP_BASIC_PYPI_PASSWORD;
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}

- name: Setup caching
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
Expand All @@ -119,12 +120,14 @@ jobs:
go run mage.go deps
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.12'

- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: ${{ env.POETRY_VERSION }}

- name: Build and push the python package
env:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/aserto-dev/python-authorizer

go 1.19
go 1.22

require github.com/magefile/mage v1.14.0
Loading

0 comments on commit 0c600bc

Please sign in to comment.