diff --git a/.github/workflows/continous_integration.yml b/.github/workflows/continous_integration.yml index b0f8271e..cc518763 100644 --- a/.github/workflows/continous_integration.yml +++ b/.github/workflows/continous_integration.yml @@ -4,9 +4,13 @@ name: CI # Controls when the action will run. on: - # Triggers the workflow on push or pull request events but only for the master branch + # Triggers the workflow on push or pull request events but only for the main branch push: + branches: + - main pull_request: + branches: + - main # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -16,11 +20,13 @@ jobs: build: # The type of runner that the job will run on runs-on: ubuntu-latest + # set a sensible timeout + timeout-minutes: 20 # Specify the python versions to test strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.10", "3.11", "3.12"] # Steps represent a sequence of tasks that will be executed as part of the job steps: @@ -80,14 +86,14 @@ jobs: format: cobertura - name: Echo tag name - run: echo "Tag is ${{ github.ref }}, Deploy is ${{ startsWith(github.ref, 'refs/tags/') && matrix.python-version == 3.9}}" + run: echo "Tag is ${{ github.ref }}, Deploy is ${{ startsWith(github.ref, 'refs/tags/') && matrix.python-version == 3.10}}" - name: Build a binary wheel and a source tarball shell: bash -el {0} run: python -m poetry build - name: Publish distribution 📦 to PyPI - if: ${{ startsWith(github.ref, 'refs/tags/') && success() && matrix.python-version == 3.9}} + if: ${{ startsWith(github.ref, 'refs/tags/') && success() && matrix.python-version == 3.10}} env: POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }} shell: bash -el {0} @@ -102,5 +108,5 @@ jobs: uses: coverallsapp/github-action@v2 with: parallel-finished: true - carryforward: "python3.9,python3.10,python3.11,python3.12" + carryforward: "python3.10,python3.11,python3.12" github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/pyproject.toml b/pyproject.toml index 1eef538c..69e87d4e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,6 @@ classifiers = [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12",