Skip to content

Commit

Permalink
Add support for newer python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ageiss2 committed Jun 18, 2024
1 parent 4b88e52 commit ef679e8
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 32 deletions.
57 changes: 27 additions & 30 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,35 +15,32 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.7, 3.8, 3.9, '3.10']
include:
- os: ubuntu-20.04
python-version: 3.6
os: [ ubuntu-latest ]
python-version: [ 3.7, 3.8, 3.9, '3.10', '3.11', '3.12' ]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install autopep8 pytest pytest-cov
pip install .
- name: autopep8
id: autopep8
uses: peter-evans/autopep8@v1
with:
args: --recursive --in-place --aggressive --aggressive .
- name: Test with pytest
run: |
cd test
pytest . --doctest-modules --junitxml=junit/test-results-${{ matrix.python-version }}.xml --cov=com --cov-report=xml
- name: Upload pytest test results
uses: actions/upload-artifact@v2
with:
name: pytest-results-${{ matrix.python-version }}
path: /home/runner/work/pycubexr/pycubexr/test/junit/test-results-${{ matrix.python-version }}.xml
if: ${{ always() }}
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install autopep8 pytest pytest-cov
pip install .
- name: autopep8
id: autopep8
uses: peter-evans/autopep8@v1
with:
args: --recursive --in-place --aggressive --aggressive .
- name: Test with pytest
run: |
cd test
pytest . --doctest-modules --junitxml=junit/test-results-${{ matrix.python-version }}.xml --cov=com --cov-report=xml
- name: Upload pytest test results
uses: actions/upload-artifact@v2
with:
name: pytest-results-${{ matrix.python-version }}
path: /home/runner/work/pycubexr/pycubexr/test/junit/test-results-${{ matrix.python-version }}.xml
if: ${{ always() }}
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
Expand All @@ -30,7 +31,7 @@
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Python Modules",
],
python_requires='>=3.6',
python_requires='>=3.7',
install_requires=[
"numpy~=1.18"
]
Expand Down

0 comments on commit ef679e8

Please sign in to comment.