diff --git a/.github/workflows/django_ci.yml b/.github/workflows/django_ci.yml new file mode 100644 index 0000000..27f6c15 --- /dev/null +++ b/.github/workflows/django_ci.yml @@ -0,0 +1,35 @@ +name: Django CI + +on: + push: + branches: + - test-poetry + pull_request: + branches: + - test-poetry + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + name: Check out repository + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: "3.11" # Set this to the Python version you are using + + - name: Install Poetry + run: | + curl -sSL https://install.python-poetry.org | python3 - + + - name: Configure Poetry + run: | + poetry config virtualenvs.create false + + - name: Install dependencies + run: poetry install + + - name: Run tests + run: poetry run test