Skip to content

Commit

Permalink
ci: add minimum-versions and pre-release-versions
Browse files Browse the repository at this point in the history
  • Loading branch information
gadomski committed Feb 8, 2022
1 parent 98a504e commit 1c2f1df
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,62 @@ jobs:
run: pip install -e '.[all]'
- name: Test again
run: ./scripts/test
minimum-versions:
name: minimum-versions
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
- name: Set up pip cache
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements-min.txt', '**/requirements-dev.txt') }}
restore-keys: ${{ runner.os }}-pip-
- name: Set up Conda with Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Update Conda's environemnt
run: conda env update -f environment.yml -n test
- name: Install minimum requirements
run: pip install -r requirements-min.txt
- name: Install development dependencies
run: pip install -r requirements-dev.txt
- name: Run tests
run: scripts/test
pre-release-versions:
name: pre-release-versions
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
- name: Set up pip cache
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.cfg', '**/requirements-dev.txt') }}
restore-keys: ${{ runner.os }}-pip-
- name: Set up Conda with Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Update Conda's environemnt
run: conda env update -f environment.yml -n test
- name: Install package
run: pip install .
- name: Install development dependencies
run: pip install -r requirements-dev.txt
- name: Install pre-release versions of rasterio and pystac
run: pip install -U --pre pystac rasterio
- name: Run tests
run: scripts/test
docker:
name: docker
needs:
Expand Down

0 comments on commit 1c2f1df

Please sign in to comment.