Skip to content

Finished ThuaiJudger and ThuaiBuilder #12

Finished ThuaiJudger and ThuaiBuilder

Finished ThuaiJudger and ThuaiBuilder #12

Workflow file for this run

on:
pull_request:
push:
workflow_dispatch:
env:
PYTHON_VERSION: '3.11'
jobs:
build-docker-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/build-push-action@v6
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- run: |
python -m coverage run -m unittest discover -s tests -p 'test_*.py'
- run: |
python -m coverage report --fail-under=90
check-style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
with:
options: "--check --verbose"
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pylint
- run: |
pylint -v --errors-only $(git ls-files '*.py')