Rename special membership dataset provider field #220
This file contains hidden or 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: Tests | |
| on: | |
| push: | |
| branches: ["develop"] | |
| pull_request: | |
| branches: ["develop"] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out the code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.13.0" | |
| - name: Install pipenv | |
| run: pip install pipenv | |
| - name: Install dependencies | |
| run: pipenv install --dev | |
| - name: Add a .env file | |
| run: | | |
| echo "SECRET_KEY=ThisisaVeryverysecretkey" >> .env | |
| echo "DEBUG=True" >> .env | |
| echo "ALLOWED_HOSTS=localhost" >> .env | |
| echo "CSRF_TRUSTED_ORIGINS=http://localhost" >> .env | |
| echo "IMPRESSO_DB_ENGINE=mysal" >> .env | |
| echo "IMPRESSO_DB_NAME=xxxxxxxxxxxxxxxxxx" >> .env | |
| echo "IMPRESSO_DB_USER=xxxxxxxxxxxxxxxxxx" >> .env | |
| echo "IMPRESSO_DB_PASSWORD=xxxxxxxxxxxxxx" >> .env | |
| echo "IMPRESSO_DB_HOST=localhost" >> .env | |
| echo "IMPRESSO_DB_PORT=0000" >> .env | |
| echo "IMPRESSO_SOLR_URL=http://localhost:8983/solr" >> .env | |
| echo "IMPRESSO_SOLR_PASSAGES_URL=http://localhost:8983/solr/passages" >> .env | |
| echo "IMPRESSO_SOLR_USER=ssssssssssssssss" >> .env | |
| echo "IMPRESSO_SOLR_USER_WRITE=ssssssssss" >> .env | |
| echo "IMPRESSO_SOLR_PASSWORD=ssssssssssss" >> .env | |
| echo "IMPRESSO_SOLR_PASSWORD_WRITE=ssssss" >> .env | |
| echo "IMPRESSO_SOCKS_PROXY_CONFIG='{ \"host\": \"localhost\", \"port\": 1080, \"domains\": [] }'" >> .env | |
| - name: Set up debug logging, this requires a secific debug folder | |
| run: | | |
| mkdir -p logs | |
| touch logs/debug.log | |
| - name: Run mypy | |
| run: pipenv run mypy --config-file ./.mypy.ini impresso | |
| - name: Run Django tests | |
| run: pipenv run ./manage.py test | |
| env: | |
| DJANGO_SETTINGS_MODULE: impresso.settings # replace with your actual settings module |