Update django-test.yml #12
Workflow file for this run
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: Django Test | |
on: | |
push: | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
- name: Translate to pip | |
run: | | |
poetry export --without-hashes -f requirements.txt -o requirements.txt | |
python3 -m venv venv && . venv/bin/activate | |
pip install --no-cache-dir --no-deps -r requirements.txt | |
pip install . | |
- name: Run Tests | |
run: python3 manage.py test |