Skip to content

Commit

Permalink
actions updates, experiments with 3.12 (#72)
Browse files Browse the repository at this point in the history
* experiment with 3.12

* loosen pandas for 3.12

* build updates

* rename, try new build
  • Loading branch information
mathematicalmichael authored Jan 22, 2024
1 parent 73ff730 commit 7d7cd3b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 24 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,39 @@ name: builds

on:
push:
branches: [ main ]
branches: [main]
paths:
- "src/**.py"
- "tests/**.py"
- "setup.py"
- "setup.cfg"
- ".github/workflows/build.yml"
pull_request:
branches-ignore: '**docker**'
branches-ignore: ["**docker**"]
paths:
- "src/**.py"
- "tests/**.py"
- "setup.py"
- "setup.cfg"
- ".github/workflows/build.yml"
schedule:
- cron: "0 0 1 * *"
- cron: "0 0 1 * *"

jobs:
build:
name: Test build process
name: packaging
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -44,7 +44,7 @@ jobs:
pip install --upgrade wheel setuptools setuptools_scm
- name: Inspect version info
run: |
run: |
python setup.py --version
git describe --dirty --tags --long --match "*[0-9]*"
Expand All @@ -57,12 +57,15 @@ jobs:
run: |
pip install -e .
pip uninstall -y mud
- name: Test build
run: |
python setup.py sdist bdist_wheel
pip uninstall -y mud
- name: New build
run: |
pip install build
python -m build --sdist --wheel
style:
name: Enforce style
Expand All @@ -72,12 +75,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 1

- name: setup
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- "setup.cfg"
- ".github/workflows/main.yml"
pull_request:
branches-ignore: "**docker**"
branches-ignore: ["**docker**"]
paths:
- "src/**.py"
- "tests/**.py"
Expand All @@ -22,19 +22,19 @@ on:

jobs:
unit-tests:
name: Run unit tests
name: pytest
strategy:
matrix:
python-version: ["3.7", "3.10", "3.11"]
python-version: ["3.7", "3.10", "3.11", "3.12"]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -47,25 +47,25 @@ jobs:
run: pytest

- name: Upload coverage to coveralls.io
if: ${{ matrix.python-version }} == 3.9
if: ${{ matrix.python-version }} == 3.10
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

integration-tests:
name: Run integration tests
name: cli examples
strategy:
matrix:
python-version: ["3.9"]
python-version: ["3.10", "3.12"]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ package_dir =
# Add here dependencies of your project (semicolon/line-separated), e.g.
install_requires =
importlib-metadata; python_version<"3.10"
numpy>=1.20,<1.25
numpy>=1.20,<1.27
scipy>=1.2,<2.0
matplotlib>=1.0,<4.0
scikit-learn>=1.0,<2.0
Expand Down Expand Up @@ -67,7 +67,7 @@ examples =
click
tqdm
prettytable
pandas>=1.2,<2.0
pandas>=1.2,<3.0
wget


Expand Down

0 comments on commit 7d7cd3b

Please sign in to comment.