From 39bc5f601c8cbfbd8f66b9a6ba555772f23f65d1 Mon Sep 17 00:00:00 2001 From: Attila Gombos Date: Fri, 21 Mar 2025 15:53:20 +0100 Subject: [PATCH] Add devcontainer defs and release job --- .devcontainer | 1 + .github/workflows/ci.yaml | 18 +++++++++++++++--- .gitmodules | 3 +++ 3 files changed, 19 insertions(+), 3 deletions(-) create mode 160000 .devcontainer create mode 100644 .gitmodules diff --git a/.devcontainer b/.devcontainer new file mode 160000 index 00000000..dbf917b1 --- /dev/null +++ b/.devcontainer @@ -0,0 +1 @@ +Subproject commit dbf917b1758e464f6f0aced3f51ca28aede8a8df diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ed021c9d..cf3cd0f9 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -2,12 +2,13 @@ name: CI on: push: - branches: [master] + branches: [ master ] pull_request: - branches: [master] + branches: [ master ] jobs: lint: + if: github.event_name == 'pull_request' strategy: fail-fast: false runs-on: ubuntu-22.04 @@ -15,10 +16,14 @@ jobs: - uses: actions/checkout@v4 - name: Set up Earthly uses: earthly/actions-setup@v1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} - name: Lint run: | earthly --ci +lint + build: + if: github.event_name == 'pull_request' strategy: fail-fast: false matrix: @@ -28,12 +33,13 @@ jobs: - "ubuntu:jammy" - "debian:bookworm" - "ubuntu:noble" - - "debian:trixie" runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - name: Set up Earthly uses: earthly/actions-setup@v1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} - name: Run tests run: | earthly --ci +test --OS=${{matrix.os}} @@ -45,3 +51,9 @@ jobs: if: ${{contains(fromJSON('["ubuntu:focal", "debian:bullseye", "ubuntu:jammy"]'), matrix.os)}} run: | earthly --ci +test-2and3 --OS=${{matrix.os}} + + release: + if: startsWith(github.ref, 'refs/tags/') + uses: EffectiveRange/ci-workflows/.github/workflows/python-ci.yaml@test + with: + test-enabled: false diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..f1b07532 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule ".devcontainer"] + path = .devcontainer + url = https://github.com/EffectiveRange/devcontainer-defs