-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (38 loc) · 1.11 KB
/
aws_tests.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
38
39
40
41
42
43
44
45
46
47
48
# GitHub Action for running AWS tests.
# Author: Andrew Jarombek
# Date: 2/19/2023
name: AWS Tests
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
schedule:
- cron: "0 5 * * 5"
workflow_dispatch:
jobs:
aws_tests:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- run: echo "Job running on a ${{ runner.os }} server"
- name: Check Out Repository Code
uses: actions/checkout@v3
- run: echo "Checked out branch '${{ github.ref }}' of the ${{ github.repository }} repository"
- name: Install Python 3.8
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Install Pipenv Dependencies
run: |
pip install pipenv
pipenv install
working-directory: ./test
- name: Run AWS Infrastructure Tests
run: pipenv run test
working-directory: ./test
env:
TEST_ENV: prod
AWS_DEFAULT_REGION: us-east-1
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}