name: Linux

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  tests:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
        dist:
          - py3_casacore_master
    steps:
      - name: Checkout
        uses: actions/checkout@v4
        with:
          # Needed for `setuptools-scm`
          fetch-depth: 0

      - name: Build container
        run: docker build . -t ${{ matrix.dist }} -f .github/workflows/${{ matrix.dist }}.docker
