Testing #267
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
# 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 | |