Filter out unlisted posts when remote users are querying /posts #300
Workflow file for this run
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: Django Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
# on: | |
# schedule: | |
# - cron: '*/15 * * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r server/requirements.txt | |
- name: Coverage report | |
run: | | |
pip install coverage | |
coverage run server/manage.py test | |
coverage report | |
- name: Django Testing | |
run: | | |
python3 server/manage.py test socialdistribution |