From c78afa73e3d5704a9f91d74a6961dbef85d1ed56 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 4 Oct 2026 19:11:23 +0500 Subject: workflows/ci: add a job to test on various Ubuntu versions --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7511299..49dddd5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: - name: Run black uses: psf/black@stable - test: + test_python: strategy: matrix: python-version: @@ -60,8 +60,36 @@ jobs: - name: Run tests run: ./test/main.sh + test_ubuntu: + strategy: + matrix: + codename: + - focal + - jammy + - noble + - resolute + runs-on: ubuntu-latest + container: + image: 'ubuntu:${{ matrix.codename }}' + name: 'Ubuntu: ${{ matrix.codename }}' + steps: + - name: Install dependencies + run: | + apt update + DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends \ + ca-certificates \ + python3 \ + python3-matplotlib + - name: Checkout + uses: actions/checkout@v7 + - name: Run tests + run: ./test/main.sh + publish_pypi: - needs: [lint, test] + needs: + - lint + - test_python + - test_ubuntu runs-on: ubuntu-latest name: Publish steps: -- cgit v1.3