Releasing version 3.4.0 #51
Workflow file for this run
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: tests | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| python: ['3.10', '3.11', '3.12', '3.13'] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| allow-prereleases: true | |
| - name: Install Python dependencies | |
| run: pip install jeepney cryptography codecov | |
| - name: Clone libsecret repository | |
| run: git clone https://gitlab.gnome.org/GNOME/libsecret.git | |
| - name: Run tests | |
| run: | | |
| dbus-run-session -- coverage run tests/run_tests.py libsecret/libsecret/mock-service-normal.py | |
| dbus-run-session -- coverage run -a tests/run_tests.py libsecret/libsecret/mock-service-only-plain.py | |
| dbus-run-session -- coverage run -a tests/run_tests.py libsecret/libsecret/mock-service-lock.py | |
| - name: Upload reports to Codecov | |
| if: ${{ matrix.python == '3.13' }} | |
| run: codecov | |
| static-analysis: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-python@v6 | |
| - name: Install mypy and flake8 | |
| run: pip install mypy flake8 types-cryptography | |
| - name: Run flake8 | |
| run: flake8 --max-line-length=88 . | |
| - name: Run mypy | |
| run: mypy --strict --ignore-missing-imports secretstorage/ tests/ | |
| pypi-publish: | |
| if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: pypi | |
| url: https://pypi.org/p/SecretStorage | |
| permissions: | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.13' | |
| - run: pip install build | |
| - run: python -m build | |
| - if: success() | |
| uses: pypa/gh-action-pypi-publish@release/v1 |