Repository: activeviam/jdk4py (language: python)

Issue:
Support Python 3.10
Python 3.10 has been released

The wheel is cross Python versions so it only need to be tested in 3.10.
The conda package is still one per Python version so a package for 3.10 should be released


Discussion / hints:
Depends on https://github.com/actions/setup-python/issues/249

Fix patch:
diff --git a/.github/actions/create-conda-package/action.yaml b/.github/actions/create-conda-package/action.yaml
index d68c6f4..1e4559a 100644
--- a/.github/actions/create-conda-package/action.yaml
+++ b/.github/actions/create-conda-package/action.yaml
@@ -6,8 +6,9 @@ runs:
     - uses: conda-incubator/setup-miniconda@v2
       with:
         channels: conda-forge
-        conda-build-version: "3.21.5"
+        conda-build-version: "3.21.6"
 
     - name: Create Conda package
-      shell: bash
+      # See https://github.com/conda-incubator/setup-miniconda/blame/059455a698430d8b68fa317268fa2e3da3492a98/README.md#L609-L610.
+      shell: bash -l {0}
       run: conda build --no-anaconda-upload --output-folder dist .
diff --git a/.github/workflows/deployment.yaml b/.github/workflows/deployment.yaml
index 4f383c8..ac0c41a 100644
--- a/.github/workflows/deployment.yaml
+++ b/.github/workflows/deployment.yaml
@@ -17,7 +17,7 @@ jobs:
 
       - uses: ./.github/actions/build-jdk
         with:
-          python-version: "3.9"
+          python-version: "3.10"
 
       - uses: ./.github/actions/create-python-wheel
 
diff --git a/conda.recipe/conda_build_config.yaml b/conda.recipe/conda_build_config.yaml
index 0f50b31..ca82dd0 100644
--- a/conda.recipe/conda_build_config.yaml
+++ b/conda.recipe/conda_build_config.yaml
@@ -2,3 +2,4 @@ python:
   - "3.7"
   - "3.8"
   - "3.9"
+  - "3.10"
diff --git a/jdk4py/java_version.txt b/jdk4py/java_version.txt
index 8bb4c9a..f480bca 100644
--- a/jdk4py/java_version.txt
+++ b/jdk4py/java_version.txt
@@ -1,1 +1,1 @@
-11.0.10
+11.0.13
diff --git a/scripts/set_environment.py b/scripts/set_environment.py
index ecf6aac..de06f56 100644
--- a/scripts/set_environment.py
+++ b/scripts/set_environment.py
@@ -4,7 +4,7 @@
 
 from jdk4py import JAVA_VERSION
 
-_BUILD_VERSION = 2
+_BUILD_VERSION = 0
 
 _SYSTEM_TO_CONDA_ARCH = {
     "Darwin": "osx-64",


Test patch:
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index 7f610d7..b5ed254 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -14,6 +14,7 @@ jobs:
           - "3.7"
           - "3.8"
           - "3.9"
+          - "3.10"
       fail-fast: false
     name: Test on ${{ matrix.os }} with Python ${{ matrix.python }}
     steps:
@@ -24,7 +25,7 @@ jobs:
           python-version: ${{ matrix.python }}
 
       # No need to lint for each OS and Python version
-      - if: matrix.os == 'ubuntu-latest' && matrix.python == '3.9'
+      - if: matrix.os == 'ubuntu-latest' && matrix.python == '3.10'
         name: Check formatting
         run: poetry run black --check .
 
@@ -34,7 +35,7 @@ jobs:
       - uses: ./.github/actions/create-python-wheel
 
       # No need to upload the package for each Python version
-      - if: matrix.python == '3.9'
+      - if: matrix.python == '3.10'
         uses: actions/upload-artifact@v2
         with:
           if-no-files-found: error
@@ -42,19 +43,22 @@ jobs:
           path: dist/jdk4py-*.whl
 
   conda-package:
-    runs-on: ubuntu-latest
+    runs-on: ${{ matrix.os }}
+    strategy:
+      matrix:
+        os: [macos-latest, windows-latest, ubuntu-latest]
     name: Test Conda packaging
     steps:
       - uses: actions/checkout@v2
 
       - uses: ./.github/actions/build-jdk
         with:
-          python-version: "3.9"
+          python-version: "3.10"
 
       - uses: ./.github/actions/create-conda-package
 
       - uses: actions/upload-artifact@v2
         with:
           if-no-files-found: error
-          name: conda-packages
+          name: jdk4py-${{ matrix.os }}-conda-packages
           path: dist/${{ env.JDK4PY_CONDA_ARCH }}/jdk4py-*.tar.bz2