From 91dab9d7666643c8031100fe1410dee1e1b9e7b9 Mon Sep 17 00:00:00 2001 From: Daniel Gray Date: Mon, 29 Apr 2024 08:20:41 +0200 Subject: [PATCH] adding git actions tests --- .github/workflows/testing.yml | 15 +++++++++++++++ README.md | 6 ------ 2 files changed, 15 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/testing.yml diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml new file mode 100644 index 00000000..1867c59a --- /dev/null +++ b/.github/workflows/testing.yml @@ -0,0 +1,15 @@ +name: test_Django +on: [pull_request, push] # activates the workflow when there is a push or pull request in the repo +jobs: + test_project: + runs-on: ubuntu-latest # operating system your code will run on + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + - name: Install Dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Run Tests + run: | + python manage.py test diff --git a/README.md b/README.md index ab4adc6f..194ea783 100644 --- a/README.md +++ b/README.md @@ -23,9 +23,3 @@ About the project: 2. Run `make build` to build the docker image 3. Run `make run` to run the docker container 4. Run `make stop` to stop the docker container - - - - - -