[HEP] HEP Purpose, Policy, and Guidelines #266
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: tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- '*' | |
workflow_dispatch: | |
schedule: | |
- cron: '0 4 1 */2 SUN' # every two months on Sunday at 4 am | |
jobs: | |
test_suite: | |
name: Pytest on ${{ matrix.os }} with Python ${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] | |
python-version: [3.9] | |
timeout-minutes: 60 | |
defaults: | |
run: | |
shell: bash -l {0} | |
env: | |
DESC: "Python ${{ matrix.python-version }} tests" | |
PYTHON_VERSION: ${{ matrix.python-version }} | |
steps: | |
- name: configure Page file on Windows | |
# To fix a Memory Error while reading the earthquake Parquet file | |
# See https://github.com/holoviz/holoviz/issues/309 | |
if: contains(matrix.os, 'windows') | |
uses: al-cheb/configure-pagefile-action@v1.2 | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: "100" | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniconda-version: "latest" | |
- name: Fetch unshallow | |
run: git fetch --prune --tags --unshallow | |
- name: conda setup | |
run: | | |
conda config --set solver libmamba | |
conda install "anaconda-project>=0.10.1" | |
- name: prepare | |
run: anaconda-project prepare --directory examples | |
- name: conda list | |
run: anaconda-project run --directory examples conda_list | |
- name: lint | |
run: anaconda-project run --directory examples lint | |
- name: test | |
run: anaconda-project run --directory examples test |