removing modules unused in pytest script #35
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
name: Python Tests | |
on: [push, pull_request] # Run on pushes and pull requests | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Set up python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' # Replace '3.x' with your Python version | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install fredapi pytest pandas python-dotenv | |
- name: Set environment variable | |
run: | | |
echo "API_KEY=${{ secrets.FRED_API_KEY }}" >> $GITHUB_ENV # FRED_API_KEY from repo secrets | |
- name: Run Tests | |
run: pytest |