From 1ade4540cdac5ef4431681864bcfb9604f133237 Mon Sep 17 00:00:00 2001
From: Anton Tetov <anton@tetov.se>
Date: Mon, 17 Oct 2022 23:24:18 +0200
Subject: [PATCH] test on 3.11 and builtin upload untracked on ci

---
 .gitlab-ci.yml | 11 +++++++----
 pyproject.toml |  3 +++
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7bce089..f32c612 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 2b320e4..896d12c 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"
-- 
GitLab