diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index b6f4618..e18f914 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -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 diff --git a/test/test_sqlcreate.py b/test/test_sqlcreate.py index a22ea8b..7e7e2e9 100644 --- a/test/test_sqlcreate.py +++ b/test/test_sqlcreate.py @@ -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):