Skip to content

Commit

Permalink
CI and linting fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Syme <[email protected]>
  • Loading branch information
robsyme committed Nov 24, 2023
1 parent afae3d3 commit de08e16
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ jobs:
# Only run on push if this is the nf-aggregate dev branch (merged PRs)
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'seqeralabs/nf-aggregate') }}"
runs-on: ubuntu-latest
env:
TOWER_ACCESS_TOKEN: ${{ secrets.TOWER_ACCESS_TOKEN }}
strategy:
matrix:
NXF_VER:
- "23.04.0"
- "23.10.0"
- "latest-everything"
steps:
- name: Check out pipeline code
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ testing/
testing*
*.pyc
bin/
*.html
4 changes: 2 additions & 2 deletions assets/schema_input.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "string",
"pattern": "^[a-z]+/[a-z]+$",
"errorMessage": "Please provide a valid Seqera Platform Workspace name"
},
}
},
"required": ["id", "workspace"]
}
}
}
3 changes: 2 additions & 1 deletion bin/plot_run_gantt.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ def build_gantt(title: str, input_dir: str, output_file: str):
+ timedelta(seconds=1),
"instance": f"{d.get('instanceId', 'HEAD')} ({d.get('machineType', 'unknown')})",
}
for d in data if d.get("complete")
for d in data
if d.get("complete")
)

fig = px.timeline(
Expand Down
2 changes: 1 addition & 1 deletion modules/local/seqera_runs_dump/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Long getWorkspaceId(orgName, workspaceName, client, authHeader) {
if (orgResponse.statusCode == 200) {
def orgMap = orgResponse.json?.organizations.collectEntries { org -> [org.name, org.orgId]}
def orgId = orgMap.get(orgName)
if(!orgId) log.warn "Could not find organization '${orgName}'"
if(!orgId) log.warn "Could not find organization '${orgName}'"

// GET the workspaces in this org
def workspaceReponse = client.get(path: "/orgs/${orgId}/workspaces", headers: authHeader)
Expand Down

0 comments on commit de08e16

Please sign in to comment.