forked from OCA/rest-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
175 additions
and
463 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
# Do NOT update manually; changes here will be overwritten by Copier | ||
_commit: v1.3.6 | ||
_src_path: https://github.com/OCA/oca-addons-repo-template.git | ||
ci: Travis | ||
_src_path: gh:oca/oca-addons-repo-template | ||
ci: GitHub | ||
dependency_installation_mode: PIP | ||
generate_requirements_txt: true | ||
include_wkhtmltopdf: false | ||
odoo_version: 14.0 | ||
odoo_version: 15.0 | ||
rebel_module_groups: [] | ||
repo_description: This repo holds addons developed to ease the development of REST | ||
services into Odoo. | ||
repo_name: REST frameworks | ||
repo_description: 'TODO: add repo description.' | ||
repo_name: rest-framework | ||
repo_slug: rest-framework | ||
travis_apt_packages: [] | ||
travis_apt_sources: [] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,5 +16,5 @@ jobs: | |
# We also need to pin to an older version of python for older odoo versions | ||
# where we are not using black > 21. Older black versions won't work with | ||
# Python 3.9.8+, and we can't bump black without reformatting. | ||
python-version: "3.9.7" | ||
python-version: "3.10" | ||
- uses: pre-commit/[email protected] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: test Odoo addons | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "15.0*" | ||
push: | ||
branches: | ||
- "15.0*" | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
container: ${{ matrix.container }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- container: ghcr.io/oca/oca-ci/py3.8-odoo15.0:latest | ||
makepot: "true" | ||
- container: ghcr.io/oca/oca-ci/py3.8-ocb15.0:latest | ||
services: | ||
postgres: | ||
image: postgres:9.6 | ||
env: | ||
POSTGRES_USER: odoo | ||
POSTGRES_PASSWORD: odoo | ||
POSTGRES_DB: odoo | ||
ports: | ||
- 5432:5432 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
- name: Install addons and dependencies | ||
run: oca_install_addons | ||
- name: Check licenses | ||
run: manifestoo -d . check-licenses | ||
- name: Check development status | ||
run: manifestoo -d . check-dev-status --default-dev-status=Beta | ||
- name: Initialize test db | ||
run: oca_init_test_database | ||
- name: Run tests | ||
run: oca_run_tests | ||
- uses: codecov/codecov-action@v1 | ||
- name: Update .pot files | ||
run: oca_export_and_push_pot https://x-access-token:${{ secrets.GIT_PUSH_TOKEN }}@github.com/${{ github.repository }} | ||
if: ${{ matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'OCA' }} |
Oops, something went wrong.