diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7bce0897924f0ca6f33a87d918eeb9b49756e5e0..f32c612d282f065ce6e1dd6f23c990c6dc65e98f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -40,12 +40,10 @@ run-pre-commit: stage: quality script: make check allow_failure: true - after_script: - - mkdir -pv changed - - git status --porcelain | awk 'match($1,"M"){print $2}' | xargs -r cp -vt changed artifacts: name: "$CI_JOB_NAME" expire_in: 7 days + untracked: true paths: - "changed/*" when: on_failure @@ -62,12 +60,17 @@ test_py3.10: variables: PYTHON_VER: "3.10" +test_py3.11-rc: + extends: .test-template + variables: + PYTHON_VER: "3.11-rc" + # Publish jobs publish: stage: publish only: - - /^v(\d+\.)(\d+\.)(\d+)$/ + - /^v(\d+\.)(\d+\.)(\d+)$/ script: - make build - poetry publish --username=__token__ --password="$PYPI_TOKEN" diff --git a/pyproject.toml b/pyproject.toml index 2b320e42cd51412d5c3896123ca26454ba70e97d..896d12c2cd7846d58ce82d8c48cef67dd5667b30 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,3 +33,6 @@ convention = "numpy" [tool.pytest.ini_options] testpaths = ["tests"] + +[tool.mypy] +python_version = "3.9"