Merge pull request #243 from neutrinoceros/mnt/uv_lock_pre-commit #802
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: CI (bleeding edge) | |
# goals: check stability against | |
# - dev version of numpy, matplotlib, scipy, h5py and astropy | |
# - building with future pip default options | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths: | |
- .github/workflows/bleeding-edge.yaml | |
schedule: | |
# run this every Wednesday at 3 am UTC | |
- cron: 0 3 * * 3 | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Dev upstream | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Setup uv | |
uses: astral-sh/setup-uv@4db96194c378173c656ce18a155ffc14a9fc4355 # v5.2.2 | |
with: | |
python-version: '3.13' | |
- name: configure uv | |
run: | | |
echo "UV_PRERELEASE=allow" >> $GITHUB_ENV | |
echo "UV_INDEX=https://pypi.anaconda.org/scientific-python-nightly-wheels/simple https://pypi.anaconda.org/astropy/simple/ https://pypi.anaconda.org/liberfa/simple" >> $GITHUB_ENV | |
echo "UV_INDEX_STRATEGY=unsafe-best-match" >> $GITHUB_ENV | |
- name: Build amical | |
run: uv sync --no-editable --group test | |
- name: Run tests | |
run: uv run --no-sync pytest --color=yes |