Skip to content

chore: Update README #8

chore: Update README

chore: Update README #8

name: Push Event Workflow
on: push
jobs:
unit-testing:
runs-on: ubuntu-latest
steps:
- name : Checkout code
uses : actions/checkout@v2
- name : Setup Python
uses : actions/setup-python@v2
with:
python-version: '3.9'
- name : Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: replace credentials with secrets
run: |
sed -i 's/access_token = ".*"/access_token = "${{ secrets.ACCESS_TOKEN }}"/g' creds.py
sed -i 's/facebook_page_id = ".*"/facebook_page_id = "${{ secrets.FACEBOOK_PAGE_ID }}"/g' creds.py
sed -i 's/app_id = ".*"/app_id = "${{ secrets.APP_ID }}"/g' creds.py
sed -i 's/app_secret = ".*"/app_secret = "${{ secrets.APP_SECRET }}"/g' creds.py
- name : Run tests
run :
python -m unittest discover -v