Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support python 3.10 #154

Merged
merged 11 commits into from
Mar 31, 2023
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ jobs:
uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: install Poetry
uses: abatilo/[email protected]
- name: install Dunamai
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/quick_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ jobs:
uses: actions/checkout@v2
- name: install Python
uses: actions/setup-python@v2
# due to cfdm dependency python 3.10 cannot be supported
with:
python-version: 3.9
python-version: '3.10' # due to numba
- name: load cached Python installation
id: cache
uses: actions/cache@v2
Expand All @@ -54,6 +53,9 @@ jobs:
key: test-${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libhdf5-dev
sudo apt-get install -y libnetcdf-dev
sudo apt-get install -y udunits-bin
pip install ".[testing]"
- name: run tests
Expand Down
20 changes: 14 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
# due to cfdm dependency python 3.10 cannot be supported
python-version: [ '3.8', '3.9' ]
python-version: [ '3.8', '3.9', '3.10' ]
steps:
- name: clone repository
uses: actions/checkout@v2
Expand All @@ -61,10 +60,17 @@ jobs:
key: test-${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}
- name: install non-python dependencies
if: ${{ matrix.os == 'ubuntu-latest' }}
run: sudo apt-get install -y udunits-bin
run: |
sudo apt-get update
sudo apt-get install -y libhdf5-dev
sudo apt-get install -y libnetcdf-dev
sudo apt-get install -y udunits-bin
- name: install non-python dependencies
if: ${{ matrix.os == 'macos-latest' }}
run: brew install udunits
run: |
brew install hdf5
brew install netcdf
brew install udunits
- name: install dependencies
run: pip install ".[testing]"
- name: run tests
Expand All @@ -78,9 +84,8 @@ jobs:
uses: actions/checkout@v2
- name: install Python
uses: actions/setup-python@v2
# due to cfdm dependency python 3.10 cannot be supported
with:
python-version: 3.9
python-version: '3.10'
- name: load cached Python installation
id: cache
uses: actions/cache@v2
Expand All @@ -89,6 +94,9 @@ jobs:
key: test-${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libhdf5-dev
sudo apt-get install -y libnetcdf-dev
sudo apt-get install -y udunits-bin
pip install ".[testing]"
- name: run tests with coverage
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ build-backend = 'poetry.core.masonry.api'
enable = true

[tool.poetry.dependencies]
python = '>= 3.8, < 3.10'
python = '<3.11' # due to numba
adcircpy = '^1.2.1'
file-read-backwards = '*'
nemspy = '>=1.0.4'
Expand Down