Skip to content

CI (bleeding edge) #1409

CI (bleeding edge)

CI (bleeding edge) #1409

name: CI (bleeding edge)
# this workflow is heavily inspired from pandas, see
# https://github.com/pandas-dev/pandas/blob/master/.github/workflows/python-dev.yml
# goals: check stability against
# - dev version of Python, numpy, matplotlib, and unyt
# - Cython and pytest pre-releases
# - building with future pip default options
on:
push:
branches:
- main
pull_request:
paths:
- .github/workflows/bleeding-edge.yaml
schedule:
# run this every day at 3 am UTC
- cron: '0 3 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
name: "tests with bleeding-edge crucial deps"
timeout-minutes: 60
concurrency:
# auto-cancel any in-progress job *on the same branch*
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Python (newest testable version)
uses: actions/setup-python@v4
with:
# the '-dev' suffix allows to use alphas and betas if no final release is available yet
# this version should be upgraded as often as possible, typically once a year when numpy
# and Cython are known to be compatible
python-version: '3.11-dev'
- name: Install dependencies
# PyYAML needs to be installed in isolation for now, because of a known
# incompatibility with Cython 3
# see https://github.com/yaml/pyyaml/issues/601
# and https://github.com/cython/cython/issues/4568
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools wheel
python -m pip install --pre --upgrade --extra-index https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy matplotlib
python -m pip install --pre cython ewah-bool-utils
python -m pip install git+https://github.com/yt-project/unyt.git
python -m pip install --pre pytest PyYAML
- name: Build
# --no-build-isolation is used to guarantee that build time dependencies
# are not installed by pip as specified from pyproject.toml, hence we get
# to use the dev version of numpy at build time.
run: |
python setup.py build_ext -q -j2
python -m pip install -e .[test] --no-build-isolation
- name: Run Tests
run: |
yt config set --local yt log_level 50 # Disable excessive output
pytest -vvv --color=yes