Merge pull request #517 from PROCOLLAB-github/dev #1882
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: Django CI | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| jobs: | |
| django-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.11 | |
| - name: Cache Poetry | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.local | |
| key: poetry-1.2.2-${{ hashFiles('**/poetry.lock') }} | |
| - uses: snok/install-poetry@v1 | |
| with: | |
| version: 1.2.2 | |
| virtualenvs-create: true | |
| virtualenvs-in-project: true | |
| - name: Cache dependencies | |
| id: cache-deps | |
| uses: actions/cache@v4 | |
| with: | |
| path: .venv | |
| key: pydeps-${{ hashFiles('**/poetry.lock') }} | |
| restore-keys: | | |
| pydeps- | |
| - name: Install dependencies | |
| run: poetry install | |
| - name: Run tests | |
| run: poetry run python manage.py test --verbosity=2 | |
| env: | |
| DEBUG: True | |
| DJANGO_SETTINGS_MODULE: procollab.settings | |
| PYTHONUNBUFFERED: 1 |