-
Notifications
You must be signed in to change notification settings - Fork 27
37 lines (28 loc) · 1.1 KB
/
pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Planetary Computer APIs PR CI
on:
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set Azurite Default Key
run: echo "AZURITE_ACCOUNT_KEY=$(curl https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azurite | grep "Account key:" | cut -b 24-111)" >> $GITHUB_ENV
- name: Verify Azurite Key was retrieved correctly
if: "!startsWith(env.AZURITE_ACCOUNT_KEY, 'Aby8')"
run: echo Failed to find key at learn.microsoft.com && exit 1
- name: Run cibuild
run: ./scripts/cibuild
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10" # stac-api-validator requires >= 3.10
cache: "pip"
- name: Set Azurite Default Key
run: echo "AZURITE_ACCOUNT_KEY=$(curl https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azurite | grep "Account key:" | cut -b 24-111)" >> $GITHUB_ENV
- name: Validate
run: ./scripts/validate