Skip to content

Commit

Permalink
mf
Browse files Browse the repository at this point in the history
  • Loading branch information
mam10eks committed Dec 9, 2024
1 parent f480c5a commit 4e21c03
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@ jobs:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish PyPi Package
id: meta-frontend
if: startsWith(github.ref, 'refs/tags/')
working-directory: ${{github.workspace}}/python-client
run:
sudo apt-get install -y openjdk-11-jdk
pip3 install .[test,dev]
export TWINE_NON_INTERACTIVE=True
export TWINE_PASSWORD=${{ secrets.PYPI_API_KEY}}
make build-pypi-package
# - name: Publish PyPi Package
# id: meta-frontend
# if: startsWith(github.ref, 'refs/tags/')
# working-directory: ${{github.workspace}}/python-client
# run:
# sudo apt-get install -y openjdk-11-jdk
# pip3 install .[test,dev]
# export TWINE_NON_INTERACTIVE=True
# export TWINE_PASSWORD=${{ secrets.PYPI_API_KEY}}
# make build-pypi-package
- name: Extract metadata (tags, labels) for Docker
id: meta-frontend
if: startsWith(github.ref, 'refs/tags/')
Expand Down
4 changes: 2 additions & 2 deletions python-client/tira/check_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ def check_format(self, run_output: Path):

def all_lines(self, run_output):
if (run_output / "run.txt").exists():
return super().all_lines(run_output / "run.txt")
return [i.strip() for i in super().all_lines(run_output / "run.txt")]
if (run_output / "run.txt.gz").exists():
return super().all_lines(run_output / "run.txt.gz")
return [i.strip() for i in super().all_lines(run_output / "run.txt.gz")]
else:
raise ValueError("Could not find a file run.txt or run.txt.gz")

Expand Down

0 comments on commit 4e21c03

Please sign in to comment.