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

update versioneer #63

Merged
merged 2 commits into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions .github/workflows/pytest-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,35 @@ on:
jobs:
Build-linux:
runs-on: ${{ matrix.os }}
env:
CC: gcc-9

strategy:
matrix:
os: [ubuntu-20.04, ubuntu-latest]
python-version: [3.8, 3.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest numpy
pip install -e .[compression]
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade importlib_metadata pytest numpy
python3 -m pip install -e .[compression]
env:
PYTHONPATH: $PWD

- name: Run examples
run: |
python examples/use_classic.py
python examples/use_modernised.py
python3 examples/use_classic.py
python3 examples/use_modernised.py

- name: Test with pytest
run: py.test -vs tests

18 changes: 11 additions & 7 deletions .github/workflows/pytest-macOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,25 @@ jobs:
python-version: [3.6-dev, 3.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest numpy
pip install -e .
python3 -m pip install --upgrade pip
python3 -m pip install pytest numpy
python3 -m pip install -e .
env:
PYTHONPATH: $PWD

- name: Run examples
run: |
python examples/use_classic.py
python examples/use_modernised.py
python3 examples/use_classic.py
python3 examples/use_modernised.py

- name: Test with pytest
run: py.test -vs tests
5 changes: 2 additions & 3 deletions pyrevolve/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
from pyrevolve.pyrevolve import * # noqa
from pyrevolve.crevolve import * # noqa

from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
from . import _version
__version__ = _version.get_versions()['version']
Loading
Loading