Skip to content

add zenodo schema

add zenodo schema #41

Workflow file for this run

name: Run Tests
on:
push:
branches:
- main
- development
pull_request:
branches:
- main
- development
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
path: "."
- name: Checkout hakai metadata filesxz
uses: actions/checkout@v4
with:
repository: HakaiInstitute/hakai-metadata-entry-form-files
path: ./tests/records/hakai-metadata-entry-form-files
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
export PATH="$HOME/.poetry/bin:$PATH"
- name: Install dependencies
run: poetry install
- name: Run pytest
run: poetry run pytest
- name: Convert test record to CITATION.cff if main branch
uses: hakaiinstitute/hakai-metadata-conversion@main
if: github.ref == 'refs/heads/main'
with:
input: tests/records/test_record1.json
output-file: CITATION.cff
output-format: cff
commit: false