From 910a0f7e2e685aa7b617adc2d22a3e18035c9149 Mon Sep 17 00:00:00 2001 From: Valentin Date: Thu, 22 Aug 2024 17:21:05 +0200 Subject: [PATCH] fix: shared envdir in tox, update SQA --- {{ cookiecutter.__repo_name }}/.sqa/docker-compose.yml | 2 +- {{ cookiecutter.__repo_name }}/ai4-metadata.yml | 10 +++++----- {{ cookiecutter.__repo_name }}/tox.ini | 6 ++++-- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/{{ cookiecutter.__repo_name }}/.sqa/docker-compose.yml b/{{ cookiecutter.__repo_name }}/.sqa/docker-compose.yml index dcbdb39..d189b8a 100644 --- a/{{ cookiecutter.__repo_name }}/.sqa/docker-compose.yml +++ b/{{ cookiecutter.__repo_name }}/.sqa/docker-compose.yml @@ -2,7 +2,7 @@ version: "3.6" services: thisrepo-testing: - image: "indigodatacloud/ci-images:python3.10" + image: "ai4oshub/ci-images:python3.10" container_name: "${BUILD_TAG}" hostname: "${BUILD_TAG}" working_dir: /srv diff --git a/{{ cookiecutter.__repo_name }}/ai4-metadata.yml b/{{ cookiecutter.__repo_name }}/ai4-metadata.yml index c26898e..87379e8 100644 --- a/{{ cookiecutter.__repo_name }}/ai4-metadata.yml +++ b/{{ cookiecutter.__repo_name }}/ai4-metadata.yml @@ -8,16 +8,16 @@ dates: created: '{% now 'utc', '%Y-%m-%d' %}' updated: '{% now 'utc', '%Y-%m-%d' %}' links: + ai4_template: {{ cookiecutter.__ai4_template }} source_code: {{ cookiecutter.git_base_url }}/{{ cookiecutter.__repo_name }} docker_image: ai4oshub/{{ cookiecutter.__repo_name }} - dataset: http://add-some-url-pointing-to-your-dataset.com - ai4_template: {{ cookiecutter.__ai4_template }} +# dataset: tags: - deep learning -tasks: +#tasks: categories: - AI4 pre trained - AI4 trainable - AI4 inference -libraries: -data-type: +#libraries: +#data-type: diff --git a/{{ cookiecutter.__repo_name }}/tox.ini b/{{ cookiecutter.__repo_name }}/tox.ini index 45c794c..f6de752 100644 --- a/{{ cookiecutter.__repo_name }}/tox.ini +++ b/{{ cookiecutter.__repo_name }}/tox.ini @@ -1,10 +1,12 @@ [tox] -minversion = 3.25.0 +minversion = 3.26.0 isolated_build = True -envlist = qc.sty,qc.cov,qc.sec,py310,py39,py38 +envlist = qc.sty,qc.cov,qc.sec,py310 [testenv] install_command = pip install -U {opts} {packages} +# if recreating envdir fails in tox>=4, comment the following line +envdir = {toxworkdir}/shared commands = pytest --numprocesses=auto {posargs} allowlist_externals = mkdir