Skip to content

Automate index updates and packaging #2

Open
@fedorov

Description

@fedorov

@vkt1414 I suggest we add 2 GitHub actions:

  1. Daily action that checks if there is an update to the IDC release BQ tables. If update is detected, it will
    1. run all queries in the queries folder, and save the result of each query as <query_prefix>.csv.zip in the "latest" release
    2. make a PR to update IDC version in https://github.com/ImagingDataCommons/idc-index/blob/main/idc_index/index.py#L65.
  2. Commit-triggered action that will look for release tags that follow our versioning pattern. When a tag release is detected, it will:
    1. create a GitHub release with the release tag
    2. attach indices from "latest" to the new release
    3. trigger PyPI package release
  3. Commit-triggered action that will
    1. run all the tests
    2. if queries are updated, re-run and update CSV in the latest release
  4. PR-triggered action that will
    1. if queries are updated, re-run the queries first and save resulting CSV in a place accessible during tests
    2. run all the tests (I think for this it will be beneficial to be able to run the test with the manually configured location of the table passed via the constructor)

What do you think? Did I miss anything?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions