Skip to content

Merge pull request #38 from alexuvarovskyi/HW10_PR3 #46

Merge pull request #38 from alexuvarovskyi/HW10_PR3

Merge pull request #38 from alexuvarovskyi/HW10_PR3 #46

Workflow file for this run

name: Python Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r $(pwd)/training/requirements.txt
- name: Set up AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Set PYTHONPATH and run tests
run: |
export PYTHONPATH=$PYTHONPATH:$(pwd)
export PYTHONPATH=$PYTHONPATH:$(pwd)/training/
cd $(pwd)/training
echo $PYTHONPATH
pytest