name: tox
on:
  pull_request:
jobs:
  venv:
    permissions: {}

    runs-on: ubuntu-latest
    container: ghcr.io/allisonkarlitskaya/toxbox

    timeout-minutes: 20

    steps:
      - name: Clone repository
        uses: actions/checkout@v4

      - name: Checkout submodules
        run: vendor/checkout

      - name: Run venv tests
        run: runuser -u tox -- tox --colored=yes -m venv -- --color=yes
