Saimon/direct io streamer max workers (#318) #931
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
| # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
| name: CI | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| release: | |
| types: [published, prereleased] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.9', '3.10', '3.11'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install tox | |
| pip install coveralls | |
| - name: Run Tox | |
| run: tox | |
| - name: Coveralls | |
| env: | |
| COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
| run: coveralls | |
| deploy: | |
| needs: build | |
| if: github.event_name == 'release' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Fetch entire tree | |
| run: | | |
| git fetch --prune --unshallow | |
| - name: Set up Python 3.x | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.x | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip setuptools wheel | |
| - name: Build package | |
| run: | | |
| python setup.py sdist bdist_wheel | |
| - name: Deploy to PyPi | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| user: __token__ | |
| password: ${{ secrets.PYPI_TOKEN }} | |
| if: github.event.action == 'published' | |
| - id: tagName | |
| uses: little-core-labs/get-git-tag@v3.0.2 | |
| - name: Notify Teams | |
| uses: aliencube/microsoft-teams-actions@v0.8.0 | |
| with: | |
| webhook_uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }} | |
| title: CTERA Python SDK version ${{ steps.tagName.outputs.tag }} was released | |
| summary: Python SDK Version | |
| actions: '[{ "@type": "OpenUri", "name": "PyPi", "targets": [{ "os": "default", "uri": "https://pypi.org/project/cterasdk/"}] }]' |