Skip to content

Added project_task_link_module (#209) #366

Added project_task_link_module (#209)

Added project_task_link_module (#209) #366

Workflow file for this run

name: tests
on:
pull_request:
branches:
- "16.0*"
push:
branches:
- "16.0"
jobs:
test:
runs-on: ubuntu-22.04
container: docker.io/onestein/odoo-ci:16.0
name: Odoo
services:
postgres:
image: postgres:12.0
env:
POSTGRES_USER: odoo
POSTGRES_PASSWORD: odoo
POSTGRES_DB: odoo
ports:
- 5432:5432
steps:
- uses: actions/checkout@v3
- uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: | # https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints
github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl
github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=
github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk=
- name: Aggregate
run: gitaggregate -c repos.yaml
- name: Ensure correct odoo version
run: |
rm -rf /opt/odoo/odoo
rm -rf /opt/odoo/addons
rm -f /opt/odoo/requirements.txt
cp -r odoo/odoo /opt/odoo/odoo
cp -r odoo/addons /opt/odoo/addons
cp odoo/requirements.txt /opt/odoo/requirements.txt
pip install -r /opt/odoo/requirements.txt
- name: Install external dependencies
run: |
pip3 install -r requirements.txt
pip3 install odoo-test-helper
- name: Pack
run: python3 scripts/pack.py --location . --package-file "package.txt" --destination package
- name: Initialize test db
run: oca_init_test_database
env:
ADDONS_DIR: .,package # Duplicate modules but Odoo will only load the first found
EXCLUDE: account_configuration,l10n_nl_rgs_account_financial_report,accountancy_install,management_dashboard,auditlog,account_asset_management,account_journal_lock_date,project_scrum_agile_extended,l10n_nl_rgs_usability,l10n_nl_rgs_asset,partner_country_default_nl,agreement_extended,account_statement_import_file_reconcile_oca,multi_company_disable,theme_onestein,base_menu_visibility_restriction,account_financial_consolidation_report,helpdesk_ticket_custom_priority,project_timesheet_management,account_banking_mandate_contact,project_scrum_agile,project_timeline_hr_timesheet,university_org_install,pm_migration_custom,account_financial_report,account_asset_management_template,helpdesk_mgmt,hr_timesheet_sheet,mis_builder,account_reconcile_oca,report_xlsx,project_org_install,queue_job,services_org_install,account_banking_sepa_credit_transfer,account_payment_order,project_budget_management,project_team_leave_management,fs_storage,fs_attachment,fs_storage_backup,project_sequence,account_chart_update,l10n_nl_rgs_mis_report,account_spread_cost_revenue,container_install_basis,container_install_standard,currency_rate_update,account_move_line_tax_editable,base_vat_optional_vies,trade_org_install,account_invoice_constraint_chronology,container_s3,community_org_install,base_municipality,project_management_security,mis_builder_budget,helpdesk_mgmt_fetchmail_multicompany,helpdesk_mgmt_email,account_invoice_hour_report,account_invoice_hour_report_non_billable,sale_timesheet_approval,sale_timesheet_approval_non_billable,sale_timesheet_approval_sheet,sale_timesheet_custom_fields,subscription_oca,membership_prorate,membership_prorate_variable_period,nextcloud_odoo_sync,website_local_font,helpdesk_mgmt_timesheet,account_invoice_line_default_account,membership_subscription_prorate_variable_period,purchase_sign,agreement_legal,agreement_legal_portal,agreement_legal_portal_tier_validation,agreement_legal_portal_tier_validation_sign,agreement_legal_tier_validation_sign,agreement_tier_validation,project_scrum_agile_timeline,hr_holidays_resource
ODOO_VERSION: "16.0"
- name: Run tests
run: oca_run_tests
env:
ADDONS_DIR: .,package
EXCLUDE: account_configuration,l10n_nl_rgs_account_financial_report,accountancy_install,management_dashboard,auditlog,account_asset_management,account_journal_lock_date,project_scrum_agile_extended,l10n_nl_rgs_usability,l10n_nl_rgs_asset,partner_country_default_nl,agreement_extended,account_statement_import_file_reconcile_oca,multi_company_disable,theme_onestein,base_menu_visibility_restriction,account_financial_consolidation_report,helpdesk_ticket_custom_priority,project_timesheet_management,account_banking_mandate_contact,project_scrum_agile,project_timeline_hr_timesheet,university_org_install,pm_migration_custom,account_financial_report,account_asset_management_template,helpdesk_mgmt,hr_timesheet_sheet,mis_builder,account_reconcile_oca,report_xlsx,project_org_install,queue_job,services_org_install,account_banking_sepa_credit_transfer,account_payment_order,project_budget_management,project_team_leave_management,fs_storage,fs_attachment,fs_storage_backup,project_sequence,account_chart_update,l10n_nl_rgs_mis_report,account_spread_cost_revenue,container_install_basis,container_install_standard,currency_rate_update,account_move_line_tax_editable,base_vat_optional_vies,trade_org_install,account_invoice_constraint_chronology,container_s3,community_org_install,base_municipality,project_management_security,mis_builder_budget,helpdesk_mgmt_fetchmail_multicompany,helpdesk_mgmt_email,account_invoice_hour_report,account_invoice_hour_report_non_billable,sale_timesheet_approval,sale_timesheet_approval_non_billable,sale_timesheet_approval_sheet,sale_timesheet_custom_fields,subscription_oca,membership_prorate,membership_prorate_variable_period,nextcloud_odoo_sync,website_local_font,helpdesk_mgmt_timesheet,account_invoice_line_default_account,membership_subscription_prorate_variable_period,purchase_sign,agreement_legal,agreement_legal_portal,agreement_legal_portal_tier_validation,agreement_legal_portal_tier_validation_sign,agreement_legal_tier_validation_sign,agreement_tier_validation,project_scrum_agile_timeline,hr_holidays_resource
ODOO_VERSION: "16.0"
- name: Prepare report
run: coverage xml -o coverage.xml --data-file .coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Run scripts
env:
DOMAIN: https://onestein.nl
ADMIN_USER_PWD: admin
CHANGE_ADMIN_USER_PWD: admin
SETUP_SMTP: "false"
SMTP_HOST: smtp.onestein.nl
SMTP_USER: [email protected]
SMTP_PASSWORD: mypassword
SMTP_ENCRYPTION: "ssl"
SMTP_PORT: "465"
COMPANY_EMAIL: [email protected],
PREPARE_CUSTOMER_USER: "true"
UPDATE_COMPANY: "false"
KEYCLOAK_URL: https://keycloak.onestein.nl
KEYCLOAK_REALM: main
KEYCLOAK_CLIENT_ID: odoo
KEYCLOAK_CLIENT_SECRET: odoo
KEYCLOAK_RESELLER_REALM: reseller
KEYCLOAK_RESELLER_CLIENT_SECRET: odoo
DB_HOST: postgres
DB_USER: odoo
DB_PASSWORD: odoo
DB_NAME: odoo
DB_PORT: "5432"
SETUP_INCOMING_MAIL: "true"
INCOMING_MAIL_SERVER: imap.onestein.nl
INCOMING_MAIL_USER: [email protected]
INCOMING_MAIL_PASSWORD: mypassword
INCOMING_MAIL_CONFIRM: "false"
run: |
mkdir /odoo/
mv ./scripts /odoo/scripts && /odoo/scripts/run.sh