name: CI on: push: branches: [ main, master ] pull_request: branches: [ main, master ] jobs: test: runs-on: ubuntu-latest strategy: matrix: python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt - name: Run tests run: | pytest --tb=short lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v4 with: python-version: '3.12' - name: Install linting tools run: | python -m pip install --upgrade pip pip install flake8 black isort - name: Run linting run: | flake8 proxy.py tests/ --count --select=E9,F63,F7,F82 --show-source --statistics flake8 proxy.py tests/ --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics black --check proxy.py tests/ isort --check-only proxy.py tests/ build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Build Docker image run: | docker build -t rantii .