Merge pull request #650 from dajiaji/dependabot/pip/cryptography-46.0.3 #240
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
| name: Python CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| name: Python ${{ matrix.python-version }} on ${{ matrix.platform }} | |
| runs-on: ${{ matrix.platform }} | |
| env: | |
| USING_COVERAGE: "3.10" | |
| strategy: | |
| matrix: | |
| platform: [ubuntu-latest, windows-latest] | |
| python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: python -m pip install tox-gh-actions poetry | |
| - name: Run tox | |
| run: poetry run tox | |
| - name: Upload coverage to Codecov | |
| if: contains(env.USING_COVERAGE, matrix.python-version) && matrix.platform == 'ubuntu-latest' | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| fail_ci_if_error: true | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| verbose: true | |
| package: | |
| name: Build package | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.10" | |
| - name: Install poetry | |
| run: python -m pip install poetry | |
| - name: Build package | |
| run: poetry build | |
| - name: Show result | |
| run: ls -l dist | |
| - name: Install package | |
| run: python -m pip install . | |
| - name: Import package | |
| run: python -c "import cwt; print(cwt.__version__)" |