Skip to content

Commit

Permalink
Used poetry instead or pip install
Browse files Browse the repository at this point in the history
  • Loading branch information
willtai committed May 1, 2024
1 parent 272af4e commit 9c004e8
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/pr-e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,26 +38,26 @@ jobs:
with:
python-version: '3.9'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt # Assumes you have a requirements.txt
- name: Prepare the environment
run: |
sudo apt-get update
sudo apt-get install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb
- name: Start Neo4j and run e2e tests
run: |
# Command to run your e2e tests goes here
pytest tests/e2e # Assuming you are using pytest for e2e testing
- name: Upload test artifacts on failure
if: failure()
uses: actions/upload-artifact@v3
with:
name: test-artifacts-${{ matrix.neo4j-version }}-${{ matrix.neo4j-edition }}
path: |
./tests/e2e/screenshots
./tests/e2e/logs
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Configure Poetry
run: |
echo "$HOME/.local/bin" >> $GITHUB_PATH
poetry config virtualenvs.create false
- name: Install dependencies
run: poetry install

- name: Run tests
run: poetry run pytest
#
# - name: Upload test artifacts on failure
# if: failure()
# uses: actions/upload-artifact@v3
# with:
# name: test-artifacts-${{ matrix.neo4j-version }}-${{ matrix.neo4j-edition }}
# path: |
# ./tests/e2e/screenshots
# ./tests/e2e/logs

0 comments on commit 9c004e8

Please sign in to comment.