diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 4d14795..54e30b9 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -10,28 +10,28 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: [3.7] + python-version: ["3.10"] steps: - - uses: actions/checkout@v1 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 - with: - python-version: ${{ matrix.python-version }} - - name: Install - run: | - python -m pip install --upgrade pip - pip install .[doc] - - name: Build documentation - run: | - make --directory=doc html - touch ./doc/build/html/.nojekyll - - name: Deploy - env: - ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }} - PUBLISH_BRANCH: gh-pages - PUBLISH_DIR: ./doc/build/html - SCRIPT_MODE: true - run: | - wget https://raw.githubusercontent.com/peaceiris/actions-gh-pages/v2/entrypoint.sh - bash ./entrypoint.sh + - uses: actions/checkout@v1 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Install + run: | + python -m pip install --upgrade pip + pip install .[doc] + - name: Build documentation + run: | + make --directory=doc html + touch ./doc/build/html/.nojekyll + - name: Deploy + env: + ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }} + PUBLISH_BRANCH: gh-pages + PUBLISH_DIR: ./doc/build/html + SCRIPT_MODE: true + run: | + wget https://raw.githubusercontent.com/peaceiris/actions-gh-pages/v2/entrypoint.sh + bash ./entrypoint.sh diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 249a162..cb95606 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -3,25 +3,25 @@ name: PyPI on: push: tags: - - '*' + - "*" jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - name: Set up Python - uses: actions/setup-python@v1 - with: - python-version: '3.x' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine - - name: Build and publish - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - python setup.py sdist bdist_wheel - twine upload dist/* + - uses: actions/checkout@v1 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python setup.py sdist bdist_wheel + twine upload dist/* diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c3b14ef..d023bc7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,39 +2,38 @@ name: Test on: pull_request: - branches: + branches: - develop push: - branches: + branches: - develop - master - release/* jobs: build: - runs-on: ubuntu-latest strategy: max-parallel: 4 matrix: - python-version: [3.7, 3.8, 3.9, '3.10'] + python-version: [3.9, "3.10", "3.11", "3.12"] steps: - - uses: actions/checkout@v1 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 - with: - python-version: ${{ matrix.python-version }} - - name: Install from source - run: | - python -m pip install --upgrade pip - pip install .[testing] - - name: Lint with flake8 - run: | - # stop the build if there are Python syntax errors or undefined names - flake8 ./pyannote --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 ./pyannote --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Test with pytest - run: | - pytest + - uses: actions/checkout@v1 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Install from source + run: | + python -m pip install --upgrade pip + pip install .[testing] + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 ./pyannote --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 ./pyannote --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + pytest diff --git a/setup.py b/setup.py index ccfbe05..e3567ea 100644 --- a/setup.py +++ b/setup.py @@ -67,10 +67,10 @@ "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Natural Language :: English", - "Programming Language :: Python :: 3", - "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", "Topic :: Scientific/Engineering", ], extras_require={