Files
rantii/.gitea/workflows/ci.yml
T
retoor d2d66192e4
CI / build (push) Failing after 1m25s
CI / test (3.12) (push) Failing after 1m47s
CI / test (3.9) (push) Failing after 1m59s
CI / test (3.10) (push) Failing after 1m59s
CI / test (3.11) (push) Failing after 2m0s
CI / lint (push) Failing after 2m2s
CI / test (3.8) (push) Failing after 2m50s
Update.
2025-12-08 00:14:40 +01:00

56 lines
1.4 KiB
YAML

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 .