diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index c2c47a9e..fa118661 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index e90ec1a3..13984a48 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -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 @@ -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 @@ -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 }} @@ -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 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index bfa2111b..6aaf26bc 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 @@ -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 @@ -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 }} @@ -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