diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..2e0fe47d --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,29 @@ + +# test.yml +name: Run Django Tests +on: + push: + branches: [main] +jobs: + test-django-app: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.12"] + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Run Django test + run: | + cd project + python manage.py test \ No newline at end of file diff --git a/a b/a deleted file mode 100644 index e69de29b..00000000