fix: critical bug fixes and downloads stats #3
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: Run Tests for Backend | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout page source | |
uses: actions/checkout@v4 | |
- name: MongoDB in GitHub Actions | |
uses: supercharge/[email protected] | |
with: | |
mongodb-port: 27017 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
- name: Install python libraries | |
run: pip3 install --user -r backend/requirements.txt | |
- name: load env file | |
run: | | |
echo "${{ secrets.TEST_ENV_FILE }}" > backend/.env | |
- name: Build the Docker image and run tests | |
run: cd backend && python -m unittest discover -s tests |