diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8105112 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,54 @@ +name: CI +on: + workflow_dispatch: + pull_request: + branches: + - master + push: + branches: + - master + tags: '*' + release: + types: + - published + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] + name: Test Python ${{ matrix.python-version }} + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: pip install -e . unittest2 + - name: Run tests + run: pytest + + build-and-publish: + needs: test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: '3.9' # Use a stable version for building + - name: Install build dependencies + run: pip install build twine + - name: Build wheels + run: python -m build + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: dist + path: dist/* + - name: Publish to PyPI + if: github.event_name == 'release' && github.event.action == 'published' + uses: pypa/gh-action-pypi-publish@v1.5.1 + with: + user: __token__ + password: ${{ secrets.pypi_password }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 9bbb65b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: python -python: - - "3.6" - - "3.7" - - "3.8" - - "3.9-dev" - - "nightly" -install: - - pip install -r requirements.txt - - pip install . -script: - - python chembl_webresource_client/tests.py diff --git a/setup.py b/setup.py index 04d8bd3..e75c00a 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setup( name='chembl-webresource-client', - version='0.10.9', + version='0.10.10', entry_points={ 'console_scripts': [ 'chembl_ids=chembl_webresource_client.scripts.chembl_ids:main', @@ -45,10 +45,11 @@ 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Operating System :: POSIX :: Linux', - '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', + 'Programming Language :: Python :: 3.13', 'Topic :: Scientific/Engineering :: Chemistry'], zip_safe=False, )