diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa3ecc08..19722aec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,10 +50,11 @@ jobs: uses: actions/setup-python@v5 - name: Build packages run: | - pip install wheel -r requirements.txt + python -m venv .venv + .venv/bin/pip install wheel -r requirements.txt sed -i "s/\(version='[0-9]*\.[0-9]*\.[0-9]*\)\('\)/\1.dev$(date +%Y%m%d%H%M%S)\2/g" setup.py sed -i "s/5 - Production\/Stable/4 - Beta/g" setup.py - python setup.py clean check sdist bdist_wheel + .venv/bin/python setup.py clean check sdist bdist_wheel - name: Upload to PyPI Test uses: pypa/gh-action-pypi-publish@v1.10.2 with: @@ -72,8 +73,9 @@ jobs: uses: actions/setup-python@v5 - name: Build packages run: | - pip install wheel -r requirements.txt - python setup.py clean check sdist bdist_wheel + python -m venv .venv + .venv/bin/pip install wheel -r requirements.txt + .venv/bin/python setup.py clean check sdist bdist_wheel - name: Upload to PyPI uses: pypa/gh-action-pypi-publish@v1.10.2 with: