Repository: MDAnalysis/membrane-curvature (language: python)

Issue:
Add 3.11 to CI 
While waiting for the python 3.11 release, update CI.
Reference:  
 > > Just FYI, if you're about to do a release - 3.11 is just around the corner, I'd advise waiting for it.
> 
> Thanks for pointing this out @IAlibay 
> I will wait for the release and meanwhile I can create an issue to ` '3.11.0-alpha` to the CI, if that''s ok.

3.11.0-rc.2 is probably what I'd aim for here. You'll need to use a pure python action rather than mamba (see mda_xdrlib or gh-ci-cron in core).

_Originally posted by @IAlibay in https://github.com/MDAnalysis/membrane-curvature/issues/100#issuecomment-1284417305_
      


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml
index 128b4cb..9d42efa 100644
--- a/.github/workflows/CI.yaml
+++ b/.github/workflows/CI.yaml
@@ -26,16 +26,16 @@ jobs:
       fail-fast: false
       matrix:
         os: [macOS-latest, ubuntu-latest, windows-latest]
-        python-version: [3.7, 3.8, 3.9, "3.10"]
+        python-version: [3.8, 3.9, "3.10"]
         env_file: [env, ]
         include:
           - name: minimum_requirements
             os: ubuntu-latest
-            python-version: 3.6
+            python-version: 3.8
             env_file: min
 
     steps:
-    - uses: actions/checkout@v2
+    - uses: actions/checkout@v3
 
     - name: Additional info about the build
       shell: bash
@@ -70,10 +70,35 @@ jobs:
         pytest -v --cov=membrane_curvature --cov-report=xml --color=yes membrane_curvature/tests/
 
     - name: CodeCov
-      uses: codecov/codecov-action@v1
+      uses: codecov/codecov-action@v2
       with:
         file: ./coverage.xml
         flags: unittests
         name: codecov-${{ matrix.os }}-py${{ matrix.python-version }}
         fail_ci_if_error: True
 
+  upstream_develop:
+    runs-on: ubuntu-latest
+    strategy:
+      fail-fast: false
+      matrix:
+        latest-python : ["3.10", "3.11"]
+    
+    steps:
+    - uses: actions/checkout@v3
+    - uses: actions/setup-python@v4
+      with:
+        python-version: ${{ matrix.latest-python }}
+
+    - name:  pip install membrane-curvature
+      run: |
+        pip install git+https://github.com/MDAnalysis/mdanalysis.git@develop#subdirectory=package
+        python -m pip install .
+
+    - name: install pytest
+      run: |
+        python -m pip install pytest
+
+    - name: run tests
+      run: |
+        pytest --disable-pytest-warnings membrane_curvature/tests/
diff --git a/setup.py b/setup.py
index ba0215d..55e831e 100644
--- a/setup.py
+++ b/setup.py
@@ -47,8 +47,8 @@
     # Additional entries you may want simply uncomment the lines you want and fill in the data
     # url='http://www.my_package.com',  # Website
     install_requires=[
-        'numpy>=1.16.0',
-        'mdanalysis>=2.0.0b0',
+        'numpy>=1.20.0',
+        'mdanalysis>=2.0.0'
     ],
 
     # packages required to run tests
@@ -59,7 +59,7 @@
     #            'Mac OS-X',
     #            'Unix',
     #            'Windows'],            # Valid platforms your code works on, adjust to your flavor
-    python_requires=">=3.6",          # Python version restrictions
+    python_requires=">=3.8",          # Python version restrictions
     classifiers = [
         'Development Status :: 5 - Production/Stable',
         'Environment :: Console',
@@ -71,10 +71,10 @@
         'Topic :: Scientific/Engineering ',
         'Topic :: Scientific/Engineering :: Biophysics ',
         'Programming Language :: Python :: 3',
-        'Programming Language :: Python :: 3.7',
         'Programming Language :: Python :: 3.8',
         'Programming Language :: Python :: 3.9',
         'Programming Language :: Python :: 3.10',
+        'Programming Language :: Python :: 3.11',
     ]
     # Manual control if final package is compressible or not, set False to prevent the .egg from being made
     # zip_safe=False,


Test patch:
diff --git a/devtools/conda-envs/test_env.yaml b/devtools/conda-envs/test_env.yaml
index c89ab14..fd4572e 100644
--- a/devtools/conda-envs/test_env.yaml
+++ b/devtools/conda-envs/test_env.yaml
@@ -14,4 +14,4 @@ dependencies:
 
     # Pip-only installs
   - pip:
-    - MDAnalysis==2.0.0b0
+    - MDAnalysis>=2.0.0
diff --git a/devtools/conda-envs/test_min.yaml b/devtools/conda-envs/test_min.yaml
index a3fe95e..a177c53 100644
--- a/devtools/conda-envs/test_min.yaml
+++ b/devtools/conda-envs/test_min.yaml
@@ -5,7 +5,7 @@ channels:
 dependencies:
   - python
   - pip
-  - numpy==1.16.0
+  - numpy==1.20.0
   - sphinx
      # Testing
   - pytest
@@ -14,4 +14,4 @@ dependencies:
 
     # Pip-only installs
   - pip:
-    - MDAnalysis==2.0.0b0
+    - MDAnalysis==2.0.0