add requirements.txt

+ attempt to remove poetry from distribution
This commit is contained in:
mungai-njoroge
2024-03-24 16:09:42 +03:00
committed by Mungai Njoroge
parent 0af1ae1d8e
commit ed6732e7fd
4 changed files with 95 additions and 8 deletions
+18 -4
View File
@@ -62,15 +62,29 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: "3.10.11"
- name: Install Poetry
- name: Create virtualenv
run: |
pip install poetry
python -m venv .venv
- name: Activate virtualenv (linux)
if: matrix.os == 'ubuntu-20.04'
run: |
source .venv/bin/activate
- name: Activate virtualenv (windows)
if: matrix.os == 'windows-2019'
run: |
.venv\Scripts\Activate
- name: Install dependencies
run: |
python -m poetry install
pip install -r requirements.txt
# - name: Install Poetry
# run: |
# pip install poetry
# - name: Install dependencies
# run: |
# python -m poetry install
- name: Build server
run: |
python -m poetry run python manage.py --build
python manage.py --build
env:
SWINGMUSIC_APP_VERSION: ${{ inputs.tag }}
- name: Verify Linux build success