From ecfee173a99406a19ac51255903ccc4cbfd341ad Mon Sep 17 00:00:00 2001 From: Ruan Date: Thu, 9 May 2024 15:24:41 -0300 Subject: [PATCH] feat: github actions files with pytest workflow --- .github/workflows/workflow-test.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/workflow-test.yml diff --git a/.github/workflows/workflow-test.yml b/.github/workflows/workflow-test.yml new file mode 100644 index 0000000..c090a44 --- /dev/null +++ b/.github/workflows/workflow-test.yml @@ -0,0 +1,26 @@ +name: simple-pytest-django +on: + pull_request: + branches: + ['main'] +jobs: + pytest-django: + runs-on: ubuntu-latest + + steps: + - name: checkout repository + uses: actions/checkout@v4 + + - name: configure python environment + uses: actions/setup-python@v4 + with: + python-version: '>=3.10' + + - name: install depends + run: | + python -m pip install --upgrade pip + pip install -r requirements-dev.txt + + - name: run pytests + run: | + pytest \ No newline at end of file