Skip to content

Commit

Permalink
Tweak workflow to open term on failure for act local runner tests
Browse files Browse the repository at this point in the history
  • Loading branch information
inus committed May 14, 2024
1 parent 18719cd commit 6c097fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,20 @@ jobs:
sudo apt update
sudo apt-get update
sudo apt-get -y install tmux vim libncurses5
wget https://github.com/FirebirdSQL/firebird/releases/download/R2_5_8/FirebirdCS-2.5.8.27089-0.amd64.tar.gz
wget -q https://github.com/FirebirdSQL/firebird/releases/download/R2_5_8/FirebirdCS-2.5.8.27089-0.amd64.tar.gz
tar xzf FirebirdCS-2.5.8.27089-0.amd64.tar.gz
cd FirebirdCS-2.5.8.27089-0.amd64
tar xzf buildroot.tar.gz
mv opt/firebird /opt
python -m pip install --upgrade pip setuptools wheel virtualenv
cd
python -m pip install virtualenv pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
# - name: Setup upterm session
# uses: lhotari/action-upterm@v1

- name: Test with pytest
run: |
pytest
- name: Setup upterm session
if: ${{ failure }}
uses: lhotari/action-upterm@v1
# uses: mxschmitt/action-tmate@v3
2 changes: 1 addition & 1 deletion test/test_sqlcreate.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

DB='test/TEST.fdb'

@pytest.mark.skipif(os.environ['GITHUB_ACTIONS']==true, reason="Fails in Github Actions")

@pytest.mark.skipif('GITHUB_ACTIONS' in os.environ, reason="Fails in Github Actions")
def test_sqlcreate():

if os.path.isfile(DB):
Expand Down

0 comments on commit 6c097fe

Please sign in to comment.