✨ add endpoint for getting the numbers of visits for a page #122
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: Backend tests | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
TEST_DB_HOSTNAME: localhost | |
TEST_DB_PORT: 27017 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Start MongoDB | |
uses: supercharge/[email protected] | |
- uses: actions/checkout@v1 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.11 | |
- name: Install pipenv | |
run: pip install pipenv | |
- name: Run tests | |
run: | | |
pipenv install | |
pipenv run pytest |