Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .devcontainer
Submodule .devcontainer added at dbf917
18 changes: 15 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,28 @@
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
steps:
- 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:
Expand All @@ -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}}
Expand All @@ -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
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule ".devcontainer"]
path = .devcontainer
url = https://github.com/EffectiveRange/devcontainer-defs