Merge pull request #6 from HakaiInstitute/update-erddap-xml #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
uses: hakaiinstitute/hakai-metadata-conversion@main | |
with: | |
input: tests/records/test_record1.json | |
output-file: CITATION.cff | |
output-format: cff | |
commit: false |