Update README.md #45
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: Build | |
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 fred | |
- 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 |