Skip to content

Commit

Permalink
test: change path to join abspath
Browse files Browse the repository at this point in the history
  • Loading branch information
dbhart committed Oct 10, 2024
1 parent 5bfa47c commit da5a147
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/executable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Standalone Executable

on:
push:
tags:
- '*'

permissions:
contents: read

jobs:
build_wheels:
name: Build executable 📦 for windows
runs-on: windows-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit

- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1

- name: Set up Python
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: 3.11

- name: Install development dependencies
run: |
python3 -m pip install -r requirements-exe.txt
python3 setup.py build_ext -i
python3 setup.py py2exe >> $GITHUB_STEP_SUMMARY
- uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 # v4.4.1
with:
name: standalone
path: dist/*.exe
2 changes: 1 addition & 1 deletion tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def test_run_app(self):
[
self.withdrawal_dat,
"-o",
r"F:\\NotARealDirectory.\\ThisShouldBreak\\AnyWhere",
os.path.abspath(os.path.join("this", "is", "a", "fake.", "path")),
],
standalone_mode=False,
)
Expand Down

0 comments on commit da5a147

Please sign in to comment.