[Core-257] Catalog: Don't pass default image cutline for single image… #649
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 | |
on: [push] | |
jobs: | |
test: | |
name: ${{ matrix.os }} ${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
python-version: ['3.8', '3.9', '3.10', '3.11'] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install CI deps | |
run: | | |
pip install --upgrade pip setuptools wheel | |
pip install shapely -f ${{ secrets.CI_PIP_INDEX_URL }}/simple/shapely/index.html | |
- name: Build wheel | |
run: | | |
pip wheel --no-deps --wheel-dir wheels -e . | |
pip install -e .[complete,tests] | |
- name: Test AWS | |
env: | |
TMPDIR: tempdir | |
DESCARTESLABS_ENV: testing | |
run: | | |
mkdir tempdir | |
pytest -rfExXP --assert=plain --ignore-glob="*/smoke_tests" --ignore-glob="*/e2e" --ignore="descarteslabs/core/third_party" --ignore="descarteslabs/core/client/services/metadata" descarteslabs | |
rm -r tempdir | |
slack: | |
runs-on: ubuntu-latest | |
needs: [test] | |
if: ${{ always() && github.ref_name == 'master' }} | |
steps: | |
- name: Webhook | |
env: | |
EMOJI: ${{ needs.test.result == 'success' && ':party-hat:' || ':boom:' }} | |
STATUS: ${{ needs.test.result == 'success' && 'succeeded!' || 'failed.' }} | |
run: | | |
message=`sed "s/'/\\\\\\\\'/g" <<'!' | |
${{ github.event.commits[0].message }} | |
! | |
` | |
PAYLOAD='{"text":"${{ env.EMOJI }} CI testing of ${{ github.event.repository.full_name }} has ${{ env.STATUS }}\nCommit <${{ github.event.commits[0].url }}|${{ github.sha }}> by ${{ github.event.commits[0].author.name }}: '"$message"'\n<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|Test results>"}' | |
curl -s -X POST -H "Content-Type: application/json" -d "$PAYLOAD" ${{ secrets.slack_webhook }} |