-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: move checker -> checker_old * feat: move checker template from course-template * fix(deps): add python deps * test(plugins): add aggregate and regexp plugin * test(plugins): add simple script test * feat: collect plugin stage time * feat: add jinja2 templating and plugin output * style: apply black and isort * ref: move tester and pipeline to the pkg root * fix: strategy validation in aggregation plugin * fix: add env to context * test: add print basic tests * style: fix some mypy comments * chore: add makefile for testing and linting * ci: use make file in ci tests * ci: add docs-preview job template * docs: add checker documentation draft * docs: remove or move old docs * feat: add hidden schema command * ci: fix concurrency fallback * ci: fall back to use list in matrix defenition * fix: pydantic union for older versions * fix: typings for 3.8-3.9 * fix: pydantic typings in 3.8 and 3.9 * fix: pydantic typings in 3.8 and 3.9 * fix: type[] -> Type[] for 3.8 * fix: add missing future annotation * feat(docs): docs generation (#78) * feat(docs): docs generation with MkDocs * fix(make): correct indentation * fix(make): use 'python -m' for docs build * ci: test pipeline minor fix * ci: permission deployments: write for docs preview * docs: enable mermaid and admonition * docs: fixes to match mkdocs style * docs: add mkdocs-click working * fix: revery to basic types * feat: refactor course and add course tests * feat: add exporter to collect files for testing * feat(plugin): Add plugin manytask.py (#80) * implement plugin manytask.py * rename var with submit time * fix plugin class name * move default time calculation to Args * add args test * fix when origin is empty str * add test for files collection * fix style * fix url * change from unittest mock to pytest mocker * add test for _post_with_retries * fix output for plugin (now not using logging, but properly outputted in run) * add validation for time, extract time formatting to function * fix newline * cleanup prints * refactor tests * add test for plugin run * add tests for verbose and bad response * add upper boundary for requests-mock version * remove unused get_default_args * change time format * test on requests 2.0.0 * remove redundant requests in pyproject.toml dependencies * fix mypy errors in test_manytask.py * fix redundant newlines in method declaration * simplify test_bad_response, make better assert * fix: typo in TODO * fix: remove _output in manytask plugin * test: pipeline and fix some errors * test: add config utils tests * fix: remove unused exceptions * test: exporter test template * fix: rename tester_token to report_token * fix: small fixes with pipeline result percentage * style: apply stylefixes and typings fixes * docs: refactor pipelines doc + some fixes * style: apply black * fix: pony in make file * fix: ```mermaid * ci: try to all dev docs * style: fix ruff * chore: delete old checker * feat: add checker docker image * style: apply black * chore: remove python 3.8 * style: fix with isort * style: fix add black line length configuration --------- Co-authored-by: Arman Tovmasyan <86357987+lilpuzeen@users.noreply.github.com> Co-authored-by: fortrest-jr <30597575+fortrest-jr@users.noreply.github.com>
- Loading branch information
1 parent
b33cb4f
commit b8dae8d
Showing
107 changed files
with
5,251 additions
and
7,702 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
# Git | ||
.git | ||
.gitignore | ||
.gitattributes | ||
|
||
|
||
# CI | ||
.codeclimate.yml | ||
.travis.yml | ||
.taskcluster.yml | ||
|
||
# Docker | ||
docker-compose.yml | ||
Dockerfile | ||
.docker | ||
.dockerignore | ||
|
||
# Byte-compiled / optimized / DLL files | ||
**/__pycache__/ | ||
**/*.py[cod] | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
env/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Virtual environment | ||
.env | ||
.venv/ | ||
venv/ | ||
|
||
# PyCharm | ||
.idea | ||
|
||
# Python mode for VIM | ||
.ropeproject | ||
**/.ropeproject | ||
|
||
# Vim swap files | ||
**/*.swp | ||
|
||
# VS Code | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
ARG PYTHON_VERSION=3.12 | ||
|
||
# Stage 1: Build stage | ||
FROM python:${PYTHON_VERSION}-alpine as builder | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY pyproject.toml VERSION Makefile setup.py README.md ./ | ||
COPY checker ./checker | ||
|
||
RUN python -m venv /opt/checker-venv | ||
RUN /opt/checker-venv/bin/python -m pip install --no-cache-dir --require-virtualenv . | ||
RUN find /opt/checker-venv -type d -name '__pycache__' -exec rm -r {} + && \ | ||
find /opt/checker-venv -type d -name 'tests' -exec rm -rf {} + && \ | ||
find /opt/checker-venv -name '*.pyc' -delete && \ | ||
find /opt/checker-venv -name '*.pyo' -delete | ||
|
||
|
||
# Stage 2: Runtime stage | ||
FROM python:${PYTHON_VERSION}-alpine | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY --from=builder /opt/checker-venv /opt/checker-venv | ||
|
||
ENTRYPOINT [ "/opt/checker-venv/bin/python", "-m", "checker" ] | ||
CMD [ "--help" ] |
Oops, something went wrong.