Test PyPI install #3115
Workflow file for this run
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: Test PyPI install | |
on: | |
schedule: | |
# * is a special character in YAML so you have to quote this string | |
- cron: '0 0 * * 3' | |
jobs: | |
test-installation: | |
name: Test PyPI install (${{ matrix.python-version }}, ${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | |
python-version: [3.8, 3.9, '3.10', 3.11] | |
steps: | |
- name: Setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install package | |
# avoid installing pre-releases of non-scmdata packages | |
run: | | |
pip install --upgrade pip | |
pip install scmdata | |
pip install scmdata --pre | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Test installation | |
run: | | |
python scripts/test_install.py |