Skip to content

Initial attempt at GitHub Actions based CI. #15

Initial attempt at GitHub Actions based CI.

Initial attempt at GitHub Actions based CI. #15

Workflow file for this run

---
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
lint:
strategy:
fail-fast: false
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Earthly
uses: earthly/actions-setup@v1
- name: Lint
run: |
earthly --ci +lint
build:
strategy:
fail-fast: false
matrix:
os:
- "ubuntu:focal"
- "debian:bullseye"
- "ubuntu:jammy"
- "debian:bookworm"
# TODO(astraw/stdeb#195)
# - "ubuntu:noble"
# - "debian:trixie"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Earthly
uses: earthly/actions-setup@v1
- name: Build
run: |
earthly --ci +build --OS=${{matrix.os}}
packaging-tests:
strategy:
fail-fast: false
matrix:
os:
- "ubuntu:focal"
- "debian:bullseye"
- "ubuntu:jammy"
- "debian:bookworm"
# TODO(astraw/stdeb#195)
# - "ubuntu:noble"
# - "debian:trixie"
needs: build
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Earthly
uses: earthly/actions-setup@v1
- name: Run tests
run: |
earthly --ci +test --OS=${{matrix.os}}
pypi-install-tests:
strategy:
fail-fast: false
matrix:
os:
- "ubuntu:focal"
- "debian:bullseye"
- "ubuntu:jammy"
- "debian:bookworm"
# TODO(astraw/stdeb#195)
# - "ubuntu:noble"
# - "debian:trixie"
needs: build
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Earthly
uses: earthly/actions-setup@v1
- name: Run pypi-install tests --
run: |
earthly --ci +test-pypi-install --OS=${{matrix.os}}
2and3-tests:

Check failure on line 83 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yaml (Line: 83, Col: 3): The identifier '2and3-tests' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters.
strategy:
fail-fast: false
matrix:
os:
- "ubuntu:focal"
- "debian:bullseye"
- "ubuntu:jammy"
- "debian:bookworm"
# TODO(astraw/stdeb#195)
# - "ubuntu:noble"
# - "debian:trixie"
needs: build
runs-on: ubuntu-2204
steps:
- uses: actions/checkout@v4
- name: Set up Earthly
uses: earthly/actions-setup@v1
- name: Run pypi-install tests --
run: |
earthly --ci +test-pypi-install --OS=${{matrix.os}}
- name: Run 2and3 tests
run: |
earthly --ci +test-2and3 --OS=${{matrix.os}}