Skip to content

Commit

Permalink
add solidblocks-do-python
Browse files Browse the repository at this point in the history
  • Loading branch information
pellepelster committed Feb 11, 2025
1 parent 53948c1 commit eaefaf3
Show file tree
Hide file tree
Showing 6 changed files with 206 additions and 20 deletions.
61 changes: 43 additions & 18 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ on:
- 'v[0-9]+.[0-9]+.[0-9]+-pre[0-9]*'

env:
SKIP_TESTS: ${{ contains(github.event.head_commit.message, '#skip-tests') || contains(github.event.ref, '-pre') }}
#SKIP_TESTS: ${{ contains(github.event.head_commit.message, '#skip-tests') || contains(github.event.ref, '-pre') }}
SKIP_TESTS: true

concurrency:
group: solidblocks
Expand All @@ -32,7 +33,7 @@ jobs:
job:
- { runner: macos-latest, target: macosX64 }
- { runner: macos-latest, target: macosArm64 }
- { runner: ubuntu-latest, target: linuxX64 }
- { runner: ubuntu-24.04, target: linuxX64 }
- { runner: windows-latest, target: mingwX64 }
runs-on: ${{ matrix.job.runner }}
env:
Expand Down Expand Up @@ -73,7 +74,7 @@ jobs:
job:
- { runner: macos-latest, target: macosX64 }
- { runner: macos-latest, target: macosArm64 }
- { runner: ubuntu-latest, target: linuxX64 }
- { runner: ubuntu-24.04, target: linuxX64 }
- { runner: windows-latest, target: mingwX64 }
runs-on: ${{ matrix.job.runner }}
env:
Expand All @@ -97,7 +98,7 @@ jobs:
run: ./do test-integration

solidblocks-shell:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
env:
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down Expand Up @@ -125,8 +126,31 @@ jobs:
solidblocks-shell/build/solidblocks-shell-*.zip
solidblocks-shell/build/snippets/*
solidblocks-do-python:
runs-on: ubuntu-24.04
steps:
- name: install python3-pip
run: sudo apt-get install -y python3-pip
- name: install poetry
run: sudo pip install poetry
- name: Checkout
uses: actions/checkout@v4
- run: poetry --version
- name: Build
working-directory: solidblocks-do-python
run: ./do build
- name: Test Integration
working-directory: solidblocks-do-python
run: ./do test
- name: Archive Artifacts
uses: actions/upload-artifact@v4
with:
name: solidblocks-do-python
path: |
solidblocks-do-python/dist/solidblocks_do*
solidblocks-shell-test:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
env:
HETZNER_DNS_API_TOKEN: ${{ secrets.HETZNER_DNS_API_TOKEN }}
needs:
Expand All @@ -152,7 +176,7 @@ jobs:
**/build/reports/tests
solidblocks-test:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
env:
HETZNER_DNS_API_TOKEN: ${{ secrets.HETZNER_DNS_API_TOKEN }}
steps:
Expand All @@ -176,7 +200,7 @@ jobs:
**/build/reports/tests
solidblocks-hetzner-dns:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
env:
HETZNER_DNS_API_TOKEN: ${{ secrets.HETZNER_DNS_API_TOKEN }}
steps:
Expand All @@ -200,7 +224,7 @@ jobs:
**/build/reports/tests
solidblocks-cloud-init:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
env:
HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
Expand All @@ -225,7 +249,7 @@ jobs:
solidblocks-cloud-init/build/solidblocks-cloud-init-bootstrap.sh
solidblocks-terraform:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
env:
HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN }}
HETZNER_DNS_API_TOKEN: ${{ secrets.HETZNER_DNS_API_TOKEN }}
Expand Down Expand Up @@ -253,7 +277,7 @@ jobs:
run: solidblocks-terraform/do test

solidblocks-hetzner:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs:
- solidblocks-cloud-init
steps:
Expand All @@ -272,7 +296,7 @@ jobs:
solidblocks-hetzner/build/terraform-hcloud-solidblocks-rds-postgresql-*.zip
solidblocks-hetzner-test:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs:
- solidblocks-hetzner
- solidblocks-rds-postgresql
Expand Down Expand Up @@ -305,7 +329,7 @@ jobs:

solidblocks-minio:
name: solidblocks-minio
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
Expand Down Expand Up @@ -335,7 +359,7 @@ jobs:
name: solidblocks-debug-container
env:
HETZNER_DNS_API_TOKEN: ${{ secrets.HETZNER_DNS_API_TOKEN }}
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
Expand Down Expand Up @@ -367,7 +391,7 @@ jobs:
**/build/reports/tests
solidblocks-rds-postgresql:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
Expand All @@ -385,7 +409,7 @@ jobs:
run: solidblocks-rds-postgresql/do build

solidblocks-rds-postgresql-test:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
env:
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down Expand Up @@ -420,7 +444,7 @@ jobs:
**/test/build/reports/tests
clean-cloud-resources:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
env:
HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
Expand Down Expand Up @@ -454,7 +478,7 @@ jobs:
./blcks hetzner nuke --do-nuke
release:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
if: startsWith(github.ref, 'refs/tags/v')
needs:
- solidblocks-shell
Expand All @@ -463,6 +487,7 @@ jobs:
- solidblocks-minio
- solidblocks-rds-postgresql
- solidblocks-cli
- solidblocks-do-python
- solidblocks-cli-test
- solidblocks-rds-postgresql-test
- solidblocks-hetzner
Expand Down Expand Up @@ -533,7 +558,7 @@ jobs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
Loading

0 comments on commit eaefaf3

Please sign in to comment.