update test #2
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: Python application | |
on: | |
push: | |
branches: [debug-python-venv] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- name: Verify Python installation | |
run: | | |
python --version | |
which python | |
pip --version | |
- name: List system Python versions | |
run: ls /usr/bin/python* | |
- name: Verify pip and pipenv | |
run: | | |
pip install --upgrade pip | |
pip install pipenv | |
pipenv --version | |
- name: Check Pipfile and Pipfile.lock | |
run: | | |
cat Pipfile | |
echo "---" | |
cat Pipfile.lock | |
- name: Check project structure | |
run: | | |
pwd | |
ls -R | |
- name: Install dependencies | |
run: | | |
pipenv --python 3.12 | |
pipenv install -d -v | |
- name: Debug environment | |
if: always() | |
run: | | |
env | |
pipenv --where | |
pipenv --venv || echo "No virtualenv found" | |
pipenv graph | |
- name: Run tests | |
run: pipenv run python -m pytest |