This repository regroup the standard tests to be applied to the different github data repositories handled by the Hakai Institute.
Copy the following yml files to your github repository under the directory .github/workflows
:
name: Apply Hakai Tests
on:
push:
branches: main
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install Hakai Tests
run: |
python -m pip install --upgrade pip
pip install git+https://HakaiInstitute:${{secrets.CI_TOKEN}}@github.com/HakaiInstitute/hakai-datasets-repo-standard-tests.git
- name: Test with pytest
run: |
pytest --pyargs hakai_data_repo_tests
The default configuration used to apply the different tests. In order to modify any aspect of the configuration, copy the default configuration at the top of you data repository as config.yaml
and apply the different modifications needed.
To ignore a particular list of files from the tests, add the .fileignore
file at the head of the directory (similar to .gitignore
) or add the following to the config.yaml
:
ignore_files: [list_of_file_expressions_to_ignore]
- Review time variables
- Review latitude and longitude