Template logged in username fix #12
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 Tests CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-18.04 | |
| strategy: | |
| max-parallel: 4 | |
| matrix: | |
| python-version: [3.8, 3.9] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| # this fixes local act bug of python setup | |
| - name: local act python setup fix | |
| run: | | |
| # Hack to get setup-python to work on act | |
| # (see https://github.com/nektos/act/issues/251) | |
| if [ ! -f "/etc/lsb-release" ] ; then | |
| echo "DISTRIB_RELEASE=18.04" > /etc/lsb-release | |
| fi | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Run Tests | |
| run: | | |
| python runtests.py | |