-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1.2 KB
/
run-dev.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
name: Run shortlist (dev)
on:
repository_dispatch:
types: [dev_deployed]
push:
jobs:
execute:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: pip install -r requirements.txt
- uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_DEFAULT_REGION }}
- name: Download test files
run: aws s3 cp s3://permanent-repos/test_files/critical-path.zip .
- name: Unarchive test files
run: unzip critical-path.zip
- name: Run the test
run: python -m permanent_upload dev files/
notify:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'repository_dispatch' && always() }}
needs: execute
steps:
- name: Post a message in slack
run: curl -X POST -H 'Content-type:application/json' --data '{"text":"${{ needs.execute.result }} on dev"}' https://hooks.slack.com/services/TBBFM3TEY/B02HZB4Q8EN/${{ secrets.SLACK_TOKEN }}