zenodraft-action-livetests
Livetests for zenodraft action
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.3%) to scientific vocabulary
Last synced: 6 months ago
·
JSON representation
·
Repository
Livetests for zenodraft action
Basic Info
- Host: GitHub
- Owner: zenodraft
- License: apache-2.0
- Default Branch: main
- Size: 11 MB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 19
Created over 4 years ago
· Last pushed about 2 years ago
Metadata Files
Readme
License
Citation
README.dev.md
Notes
- running the
live-testing.ymlworkflow creates tags and releases in this repository. They can be discarded once the correct operation of the workflow has been verified. - Zenodo doesn't like it when you make depositions with the same content. The errors you'll when this happens are 500 INTERNAL SERVER ERROR
Debugging the zenodraft workflow from the sibling repo can be difficult because it involves 1. code from zenodraft/zenodraft 1. code from zenodraft/action 1. code from zenodraft/zenodraft-live-testing 1. GitHub action environment 1. Zenodo or Zenodo Sandbox API
Here are some steps to make it a bit easier. Assuming the three repos have been checked out locally,
- set
zenodraftto a development branch, e.g.lib-dev - set
actionto a development branch, e.gaction-dev - keep
zenodraft-live-testingon itsmainbranch to make manually triggering its workflows a bit easier - do your development on
zenodraft. When ready to test, - run
npm run allin your checked out copy ofzenodraftto transpile and generate the distributable code inzenodraft/dist/lib - check that
zenodraft's test still pass by runningnpm run test - check that the library is useable by importing the library into
node - check that the cli works as expected (see the repo's developer notes)
- copy the code from
zenodraft/dist/libtoaction'snode_modules/zenodraft/dist/lib, for example usingmeld - add, commit, push the update to
action'saction-devbranch - in
zenodraft-live-testing, check that thedebug.ymlworkflow is using the correct branch (i.e.action-dev) fromaction - check that
zenodraft-live-testingdoesn't have any tags or releases (releasing the same content twice will fail the workflow) - check the state of depositions on Zenodo or Zendo Sandbox, whichever is the publishing target
- verify that GitHub knows about the access tokens, renew the tokens if need be by generating new ones on Zenodo [Sandbox] and copy pasting them into
zenodraft-live-testingrepo's settings. - trigger the
debug.ymlworkflow fromzenodraft-live-testingrepo
Additionally, it is sometimes useful to manually craft requests to send to Zenodo. An easy way to do this is with Postman.
TODO:
- investigate: since clearing the metadata amounts to writing minimal metadata, there may be failures due to metadata that is exactly equal which Zenodo might not like. Could possibly be avoided by having zenodraft insert a
versionwith a datetime of now.
Owner
- Name: zenodraft
- Login: zenodraft
- Kind: organization
- Repositories: 3
- Profile: https://github.com/zenodraft
Citation (CITATION.cff)
cff-version: 1.2.0
identifiers:
- value: 10.5281/zenodo.26319
type: doi
GitHub Events
Total
Last Year
Dependencies
.github/workflows/debug.yml
actions
- actions/checkout v4 composite
- zenodraft/action dbg composite
.github/workflows/live-testing.yml
actions
- actions/checkout v4 composite
- zenodraft/action main composite