Skip to content

Commit 4997445

Browse files
Merge branch 'main' into version-0.0.2
2 parents de4c259 + bc3bc3f commit 4997445

File tree

6 files changed

+9
-17
lines changed

6 files changed

+9
-17
lines changed

.github/workflows/publish-to-pypi.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,4 @@ jobs:
6161
env:
6262
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6363
RELEASE_NAME: ${{ github.ref_name }}
64-
run: gh release create $RELEASE_NAME --repo $GITHUB_REPO --generate-notes
65-
66-
- name: Upload GitHub Release
67-
env:
68-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69-
RELEASE_NAME: ${{ github.ref_name }}
70-
run: gh release upload $RELEASE_NAME dist/** --repo $GITHUB_REPO
64+
run: gh release create $RELEASE_NAME dist/* --repo $GITHUB_REPO --generate-notes

.github/workflows/publish-to-testpypi.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,4 @@ jobs:
6363
env:
6464
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6565
RELEASE_NAME: ${{ steps.create_release_name.outputs.RELEASE_NAME }}
66-
run: gh release create $RELEASE_NAME --repo $GITHUB_REPO --prerelease --generate-notes
67-
68-
- name: Upload GitHub Release
69-
env:
70-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
71-
RELEASE_NAME: ${{ steps.create_release_name.outputs.RELEASE_NAME }}
72-
run: gh release upload $RELEASE_NAME dist/** --repo $GITHUB_REPO
66+
run: gh release create $RELEASE_NAME dist/* --repo $GITHUB_REPO --prerelease --generate-notes

.github/workflows/smoketest.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
- name: Checkout the PR
3939
env:
4040
PR_NUMBER: ${{ github.event.issue.number }}
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4142
run: |
4243
gh pr checkout $PR_NUMBER
4344

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
*.log
21
.direnv
32
.envrc
43

@@ -14,6 +13,9 @@ __pycache__/
1413
# C extensions
1514
*.so
1615

16+
# Logs directory
17+
logs/
18+
1719
# Distribution / packaging
1820
.Python
1921
build/

logs/ABOUT

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/seclab_taskflow_agent/__main__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@
3838

3939
# only model output or help message should go to stdout, everything else goes to log
4040
logging.getLogger('').setLevel(logging.NOTSET)
41+
log_dir = pathlib.Path("logs")
42+
log_dir.mkdir(parents=True, exist_ok=True)
4143
log_file_handler = RotatingFileHandler(
42-
'logs/task_agent.log',
44+
log_dir.joinpath('task_agent.log'),
4345
maxBytes=1024*1024*10,
4446
backupCount=10)
4547
log_file_handler.setLevel(os.getenv('TASK_AGENT_LOGLEVEL', default='DEBUG'))

0 commit comments

Comments
 (0)