Skip to content

Commit

Permalink
add python 3.12 to officially supported versions and test it in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh committed Mar 11, 2024
1 parent 6a5d96a commit e8a941a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest, macos-14, windows-latest]
python-version: ["3.10", "3.12"]
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -29,7 +30,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: pyproject.toml

Expand All @@ -39,14 +40,16 @@ jobs:
- name: Install dependencies
run: |
uv pip install cython --system
# install ase from main branch until FrechetCellFilter is released
# TODO remove uv pip install git+https://gitlab.com/ase/ase
python setup.py build_ext --inplace
uv pip install -e .[test] --system
# TODO remove next line installing ase from main branch when FrechetCellFilter is released
uv pip install --upgrade 'ase@git+https://gitlab.com/ase/ase' --system
- name: Run Tests
run: pytest --capture=no --cov --cov-report=xml .
run: pytest --capture=no --cov --cov-report=xml
env:
CHGNET_DEVICE: cpu

Expand Down Expand Up @@ -87,7 +90,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-14, windows-latest]
python-version: ["39", "310", "311"]
python-version: ["39", "310", "311", "312"]
runs-on: ${{ matrix.os }}
steps:
- name: Check out repo
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.9",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Chemistry",
Expand Down

0 comments on commit e8a941a

Please sign in to comment.