update dev version after 0.2.1 tag #92
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
# Workflow is based on the Astropy GitHub actions workflow, ci_workflows.yml | |
name: CI | |
on: | |
push: | |
branches: | |
- '*' | |
tags: | |
- '*' | |
pull_request: | |
jobs: | |
tests: | |
name: Unit tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ['3.9'] # fuji+guadalupe version | |
astropy-version: ['==5.0'] # fuji+guadalupe version | |
fitsio-version: ['==1.1.6'] # fuji+guadalupe version | |
numpy-version: ['<1.23'] # to keep asscalar, used by astropy | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip wheel | |
python -m pip install pytest | |
python -m pip install -r requirements.txt | |
python -m pip install -U 'numpy${{ matrix.numpy-version }}' | |
python -m pip install -U 'astropy${{ matrix.astropy-version }}' | |
python -m pip cache remove fitsio | |
python -m pip install --no-deps --force-reinstall --ignore-installed 'fitsio${{ matrix.fitsio-version }}' | |
python -m pip install git+https://github.com/desihub/[email protected]#egg=specter | |
- name: Run the test | |
run: pytest py/gpu_specter | |