name: CI # Run autotest.py, the same checks as a local run. on: push: branches: [main] pull_request: jobs: autotest: runs-on: ubuntu-latest container: python:3.11 steps: - name: Install git and shellcheck for the checks run: apt-get update && apt-get install -y --no-install-recommends git shellcheck - name: Check out the repository uses: actions/checkout@v4 with: # Full history so ci/sanity.py can diff against the target branch. fetch-depth: 0 - name: Install dependencies run: | python --version python -m pip install --upgrade pip --retries 10 --timeout 120 python -m pip install -r requirements.txt --retries 10 --timeout 120 - name: Run autotest run: python autotest.py env: # Set on pull requests: the sanity diff base for changed-file checks. SANITY_DIFF_BASE: ${{ github.event.pull_request.base.sha }}