diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index cc8794dd..4f82886b 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -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: