Upstream-dev CI #58
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: Upstream-dev CI | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' # Daily “At 00:00” | |
jobs: | |
upstream-dev: | |
if: | | |
github.repository == 'UXARRAY/uxarray' | |
name: upstream-dev-py310 | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- name: Cancel previous runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: checkout | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ github.token }} | |
- name: conda_setup | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: uxarray_upstream_build | |
channel-priority: strict | |
miniconda-version: "latest" | |
python-version: "3.10" | |
channels: conda-forge | |
- name: Install select upstream dependencies | |
run: | | |
pip install https://github.com/pydata/xarray/archive/main.zip | |
pip install https://github.com/dask/dask/archive/main.zip | |
- name: Install conda dependencies | |
run: | | |
conda env update --file ci/upstream-dev-environment.yml | |
- name: Install uxarray | |
run: | | |
python -m pip install . --no-deps | |
- name: conda list | |
run: | | |
conda list | |
- name: Running Tests | |
run: | | |
python -m pytest test -v --cov=./uxarray --cov-report=xml |