Skip to content

Commit

Permalink
simplify/modernize
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Dec 19, 2024
1 parent b3021f4 commit 5b8d387
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,23 @@ jobs:
core:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
os: [ubuntu-24.04]
python-version: ["3.9", "3.10", "3.11", "3.12"]
include:
- os: macos-latest
python-version: "3.10"

runs-on: ${{ matrix.os }}

env:
FC: gfortran-14

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: prereqs for f2py (macOS)
if: runner.os == 'macOS'
run: brew reinstall gcc

- run: pip install .[tests,lint]

- run: flake8
Expand All @@ -59,18 +58,17 @@ jobs:
with:
update: true
install: >-
mingw-w64-x86_64-ninja
mingw-w64-x86_64-gcc-fortran
# Github actions Gfortran in default image is messed up.

- name: Put MSYS2_MinGW64 on PATH
run: echo "${{ runner.temp }}/msys64/mingw64/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- run: python -m pip install .[tests,lint]

Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ classifiers = [
"Topic :: Scientific/Engineering :: Atmospheric Science"
]
dynamic = ["readme"]
requires-python = ">=3.8"
requires-python = ">=3.9"
dependencies = ["numpy", "xarray", "python-dateutil"]

[project.optional-dependencies]
Expand All @@ -33,6 +33,4 @@ line-length = 100
[tool.mypy]
files = ["src", "example"]
allow_redefinition = true
show_error_context = false
show_column_numbers = true
ignore_missing_imports = true

0 comments on commit 5b8d387

Please sign in to comment.