Skip to content

Commit

Permalink
Backport workflow changes to 0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
gtopper committed Jan 4, 2024
1 parent 3213d84 commit 1417dec
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 32 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ on:
jobs:
test-go:
name: Lint & test Go code
runs-on: ubuntu-latest
runs-on: [ self-hosted, Linux ]
container:
image: golang:1.19

steps:
- name: Dump github context
Expand All @@ -39,10 +41,6 @@ jobs:
- name: Dump github ref
run: echo "$GITHUB_REF"

- uses: actions/setup-go@v3
with:
go-version: 1.19.5

- uses: actions/checkout@v3
with:
ref: refs/pull/${{ github.event.number }}/merge
Expand All @@ -59,7 +57,9 @@ jobs:

test-py:
name: Lint & test Python code
runs-on: ubuntu-latest
runs-on: [ self-hosted, Linux ]
container:
image: python:3.9.18

steps:
- name: Dump github context
Expand All @@ -76,11 +76,8 @@ jobs:
run: echo "$GITHUB_REF"

- uses: actions/checkout@v3

- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: 3.7
ref: refs/pull/${{ github.event.number }}/merge

- name: Install dependencies
run: make python-deps
Expand Down
18 changes: 7 additions & 11 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ on:
jobs:
test-go:
name: Lint & test Go code
runs-on: ubuntu-latest
runs-on: [ self-hosted, Linux ]
container:
image: golang:1.19

steps:
- name: Dump github context
Expand All @@ -39,10 +41,6 @@ jobs:
- name: Dump github ref
run: echo "$GITHUB_REF"

- uses: actions/setup-go@v3
with:
go-version: "^1.19.5"

- uses: actions/checkout@v3

# This gets killed, probably due to memory usage
Expand All @@ -58,7 +56,10 @@ jobs:

test-py:
name: Lint & test Python code
runs-on: ubuntu-latest
runs-on: [ self-hosted, Linux ]
container:
image: python:3.9.18

env:
V3IO_API: ${{ secrets.V3IO_API }}
V3IO_ACCESS_KEY: ${{ secrets.V3IO_ACCESS_KEY }}
Expand All @@ -80,11 +81,6 @@ jobs:

- uses: actions/checkout@v3

- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: 3.7

- name: Install dependencies
run: make python-deps

Expand Down
18 changes: 7 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ on:
jobs:
test-go:
name: Lint & test Go code
runs-on: ubuntu-latest
runs-on: [ self-hosted, Linux ]
container:
image: golang:1.19

steps:
- name: Dump github context
Expand All @@ -38,10 +40,6 @@ jobs:
- name: Dump github ref
run: echo "$GITHUB_REF"

- uses: actions/setup-go@v3
with:
go-version: "^1.19.5"

- uses: actions/checkout@v3

# This gets killed, probably due to memory usage
Expand All @@ -57,7 +55,10 @@ jobs:

test-py:
name: Lint & test Python code
runs-on: ubuntu-latest
runs-on: [ self-hosted, Linux ]
container:
image: python:3.9.18

env:
V3IO_API: ${{ secrets.V3IO_API }}
V3IO_ACCESS_KEY: ${{ secrets.V3IO_ACCESS_KEY }}
Expand All @@ -79,11 +80,6 @@ jobs:

- uses: actions/checkout@v3

- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: 3.7

- name: Install dependencies
run: make python-deps

Expand Down

0 comments on commit 1417dec

Please sign in to comment.