-
Notifications
You must be signed in to change notification settings - Fork 1
executable file
·36 lines (30 loc) · 917 Bytes
/
testing.yml
File metadata and controls
executable file
·36 lines (30 loc) · 917 Bytes
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
# This workflow will install Python dependencies, run tests, run linting, and test building docs
name: Testing
on:
pull_request:
branches:
- main
workflow_dispatch: # For on demand runs
schedule:
- cron: 0 0 * * * # Scheduled run every day at midnight
jobs:
build:
runs-on: ubuntu-20.04
container:
image: public.ecr.aws/w5r9l1c8/dev-swsoc-docker-lambda-base:latest
steps:
- uses: actions/checkout@v3
# Set up Python 3.10 to match the version of Python used in AWS Lambda
- name: Set up Python 10
uses: actions/setup-python@v3
with:
python-version: 3.10.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Run tests
run: |
pytest --pyargs lambda_function --cov lambda_function/src
env:
SWXSOC_MISSION: hermes