Verify Python Package Publish #71
This file contains 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: Verify Python Package Publish | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
verify: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [ '3.9', '3.10', '3.11', '3.12' ] | |
name: Python ${{ matrix.python-version }} | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: python -m pip install --upgrade pip | |
- name: Install package | |
run: pip install --no-cache-dir incremental-backup | |
- name: Test package via module | |
run: | | |
python -m incremental_backup --help | |
python -m incremental_backup backup --help | |
python -m incremental_backup restore --help | |
python -m incremental_backup prune --help | |
- name: Test package via script | |
run: | | |
incremental_backup --help | |
incremental_backup backup --help | |
incremental_backup restore --help | |
incremental_backup prune --help |