Skip to content

Commit

Permalink
Merge pull request #5 from inus/fb5-test
Browse files Browse the repository at this point in the history
Fb5 test
  • Loading branch information
inus authored May 16, 2024
2 parents 5a34ce3 + 6405b4f commit d5cc258
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
cache: 'pip'
- name: Install dependencies
run: |
sudo apt update > /dev/null
sudo apt -qq update
sudo apt-get -q update
sudo apt-get -q -y install tmux vim libncurses5
python -m pip -q install -U pip virtualenv flake8 pytest build
Expand All @@ -38,9 +38,6 @@ jobs:
python -m pip -q install -U pip virtualenv
if [ -f requirements.txt ]; then pip -q install -r requirements.txt; fi
- name: Unzip sample db
run: |
src/fb_export.py test/employee.fdb
- name: Export test json data
run: |
src/fb_export.py test/employee.fdb -e -o test/json
- name: Run tests with pytest
Expand All @@ -49,10 +46,10 @@ jobs:
- name: Build dist
run: |
python -m build
- name: Test dist
run: |
pip install dist/fb_export-0.2.0-py3-none-any.whl
fb_export test/employee.fdb
# - name: Setup lhotari ssh session on disaster
# if: ${{ failure() }}
# uses: lhotari/action-upterm@v1
# - name: Test dist
# run: |
# pip install dist/fb_export-0.2.0-py3-none-any.whl
# fb_export test/employee.fdb
- name: Setup lhotari ssh session on disaster
if: ${{ failure() }}
uses: lhotari/action-upterm@v1
4 changes: 2 additions & 2 deletions src/fb_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,5 +144,5 @@ def main(*fbe_arg):
rmtree('/tmp/firebird')

if __name__ == '__main__':
#sys.argv.pop(0)
main() # ' '.join(sys.argv))
main()

0 comments on commit d5cc258

Please sign in to comment.