Skip to content

Commit

Permalink
Merge pull request #344 from BSd3v/deploy_tests
Browse files Browse the repository at this point in the history
adjustments for GHA flow
  • Loading branch information
AnnMarieW authored Oct 10, 2024
2 parents 84a9c9c + 80b8ffb commit e3e3d01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/host-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ jobs:
GITHUB_REPOSITORY: ${{ github.repository }}
PR_NUMBER: ${{ github.event.inputs.pr_number }}
ARTIFACT_URL: ${{ env.artifact_url }}
ARTIFACT_ID: ${{ env.artifact_id }}
GITHUB_OWNER: snehilvj
FILE_FULLNAME: dash_mantine_components-${{ env.version }}.tar.gz
PACKAGE_NAME: dash_mantine_components
run: |
source .venv/bin/activate
python tmp_deploy.py
6 changes: 3 additions & 3 deletions tmp_deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@
latest_time = modified_time
latest_tar_gz = file_path

reqs['content'] += f'\n{os.getenv("ARTIFACT_URL")}'
files.append(reqs)
reqs['content'] += f'\n{os.getenv("PACKAGE_NAME")} @ https://py.cafe/gh/artifact/{os.getenv("GITHUB_OWNER")}/{os.getenv("GITHUB_REPOSITORY")}/{os.getenv("ARTIFACT_ID")}/{os.getenv("FILE_FULLNAME")}'

def generate_link(files, code):
json_object = {
"requirements": reqs['content'],
"code": code,
"files": files,
}
Expand Down Expand Up @@ -85,4 +85,4 @@ def post_comment(link):
print("Comment added to the pull request.")

# Call the function to post the comment
post_comment(link)
post_comment(link)

0 comments on commit e3e3d01

Please sign in to comment.