-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3376 from neutrinoceros/dev_ci
Future proofing: add a scheduled job with dev versions of core deps
- Loading branch information
Showing
5 changed files
with
72 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
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, and matplotlib | ||
# - building with future pip default options | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
schedule: | ||
# run this every day at 3 am UTC | ||
- cron: '0 3 * * *' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Python3.10-dev | ||
timeout-minutes: 60 | ||
|
||
concurrency: | ||
group: ${{ github.ref }}-dev | ||
cancel-in-progress: true | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python Dev Version | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10-dev' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install --upgrade setuptools wheel | ||
python -m pip install git+https://github.com/numpy/numpy.git | ||
python -m pip install git+https://github.com/matplotlib/matplotlib.git | ||
python -m pip install cython | ||
- name: Build yt | ||
# --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: pytest -vvv |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ numpy>=1.19.4 | |
cython>=0.29.21,<3.0 | ||
cartopy~=0.18.0 | ||
h5py~=3.1.0 | ||
matplotlib<3.6 | ||
matplotlib>=2.0.2,<3.6 | ||
scipy~=1.5.0 |