Run Repository Tests #83
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
# Install and test the package with the following conditions (various platforms / versions). | |
# - dispatch | |
# - weekly | |
# | |
# The tests are run on the following repositories: | |
# - PyPI repository | |
# - Conda repository | |
# | |
# Thomas Guillod - Dartmouth College | |
# Mozilla Public License Version 2.0 | |
name: Run Repository Tests | |
on: | |
# ===================== job triggers | |
workflow_dispatch: | |
schedule: | |
- cron: "0 2 * * 1" | |
jobs: | |
# ===================== run with conda | |
conda: | |
strategy: | |
fail-fast: false | |
matrix: | |
system: | |
- "ubuntu-latest" | |
- "macos-latest" | |
- "windows-latest" | |
version: | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
- "3.13" | |
name: conda / ${{ matrix.system }} / ${{ matrix.version }} | |
runs-on: ${{ matrix.system }} | |
timeout-minutes: 20 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
sparse-checkout-cone-mode: false | |
sparse-checkout: .github | |
- name: Set up Conda | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
miniforge-version: latest | |
python-version: ${{ matrix.version }} | |
auto-activate-base: false | |
activate-environment: pypeec | |
- name: Install dependencies | |
shell: bash -el {0} | |
run: conda install --yes conda-forge::pypeec | |
- name: Run the script | |
shell: bash -el {0} | |
run: ./.github/scripts/run_script.sh | |
# ===================== run with pypi | |
pypi: | |
strategy: | |
fail-fast: false | |
matrix: | |
system: | |
- "ubuntu-latest" | |
- "macos-latest" | |
- "windows-latest" | |
version: | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
- "3.13" | |
name: pip / ${{ matrix.system }} / ${{ matrix.version }} | |
runs-on: ${{ matrix.system }} | |
timeout-minutes: 20 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
sparse-checkout-cone-mode: false | |
sparse-checkout: .github | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.version }} | |
- name: Install dependencies | |
shell: bash -el {0} | |
run: python -m pip install pypeec | |
- name: Run the script | |
shell: bash -el {0} | |
run: ./.github/scripts/run_script.sh |