Update.
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
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
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
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 .
|
||||
Reference in New Issue
Block a user