Crude version of app repository adding working #50
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: Code Test | |
on: | |
push: | |
paths: | |
- '**.py' | |
- '**.js' | |
- '**.html' | |
- '**.json' | |
- '**.css' | |
- '.github/workflows/code_test.yml' | |
pull_request: | |
paths: | |
- '**.py' | |
- '**.js' | |
- '**.html' | |
- '**.json' | |
- '**.css' | |
- '.github/workflows/code_test.yml' | |
jobs: | |
python: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.8] | |
steps: | |
- uses: actions/checkout@v2 | |
- 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 | |
if [ -f dev_requirements.txt ]; then pip install -r dev_requirements.txt; fi | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Run tests | |
run: | | |
python manage.py test |