Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make qc.yml ODK managed by default #990

Merged
merged 2 commits into from
Feb 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion odk/odk.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ class OntologyProject(JsonSchemaMixin):
ci : Optional[List[str]] = field(default_factory=lambda: ['github_actions'])
"""continuous integration defaults; currently available: travis, github_actions, gitlab-ci"""

workflows : Optional[List[str]] = field(default_factory=lambda: ['docs'])
workflows : Optional[List[str]] = field(default_factory=lambda: ['docs', 'qc'])
"""Workflows that are synced when updating the repo. Currently available: docs, diff, qc, release-diff."""

import_pattern_ontology : bool = False
Expand Down
2 changes: 1 addition & 1 deletion template/_dynamic_files.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ branches:
notifications:
email:
- [email protected]
{% endif -%}{% if 'github_actions' in project.ci %}
{% endif -%}{% if (('github_actions' in project.ci) and ('qc' in project.workflows)) %}
^^^ .github/workflows/qc.yml
# Basic ODK workflow

Expand Down
2 changes: 1 addition & 1 deletion template/src/scripts/update_repo.sh.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ cp -n target/$OID/.travis.yml $ROOTDIR/
{%- endif -%}{% if 'github_actions' in project.ci %}
mkdir -p $ROOTDIR/.github
mkdir -p $ROOTDIR/.github/workflows
cp {% if 'qc' not in project.workflows %}-n {% endif %}target/$OID/.github/workflows/qc.yml $ROOTDIR/.github/workflows/qc.yml
{% if 'qc' in project.workflows %}cp target/$OID/.github/workflows/qc.yml $ROOTDIR/.github/workflows/qc.yml{% endif %}
{% if 'diff' in project.workflows %}cp target/$OID/.github/workflows/diff.yml $ROOTDIR/.github/workflows/diff.yml{% endif %}
{% if 'release-diff' in project.workflows %}cp target/$OID/.github/workflows/release-diff.yml $ROOTDIR/.github/workflows/release-diff.yml{% endif %}
{% if project.documentation is not none %}
Expand Down
Loading