Skip to content

Commit

Permalink
Fix the github actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jursimplicate committed Jun 11, 2024
1 parent 30720c8 commit 8b34b7c
Show file tree
Hide file tree
Showing 10 changed files with 54 additions and 673 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,3 @@ jobs:
# auto-generated (which also helps functionals when using runboat).
# DOCS https://pre-commit.com/#temporarily-disabling-hooks
SKIP: oca-gen-addon-readme
- name: Check that all files generated by pre-commit are in git
run: |
newfiles="$(git ls-files --others --exclude-from=.gitignore)"
if [ "$newfiles" != "" ] ; then
echo "Please check-in the following files:"
echo "$newfiles"
exit 1
fi
11 changes: 10 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
runs-on: ubuntu-22.04
container: ${{ matrix.container }}
name: ${{ matrix.name }}
env:
ADDONS_PATH: "/opt/odoo/addons,/__w/dutch-food-coop-odoo/dutch-food-coop-odoo/extra-addons"
strategy:
fail-fast: false
matrix:
Expand All @@ -48,9 +50,16 @@ jobs:
ports:
- 5432:5432
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Checkout extra Odoo modules
uses: actions/checkout@v4
with:
repository: OCA/queue
path: "${{ github.workspace }}/extra-addons"
- name: list workspace in __w
run: ls -als "/__w/dutch-food-coop-odoo/dutch-food-coop-odoo/extra-addons"
- name: Install addons and dependencies
run: oca_install_addons
- name: Check licenses
Expand Down
2 changes: 2 additions & 0 deletions oca_dependencies.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# oca_dependencies.txt
queue_job
35 changes: 35 additions & 0 deletions product_digi_sync/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
**This file is going to be generated by oca-gen-addon-readme.**

*Manual changes will be overwritten.*

Please provide content in the ``readme`` directory:

* **DESCRIPTION.rst** (required)
* INSTALL.rst (optional)
* CONFIGURE.rst (optional)
* **USAGE.rst** (optional, highly recommended)
* DEVELOP.rst (optional)
* ROADMAP.rst (optional)
* HISTORY.rst (optional, recommended)
* **CONTRIBUTORS.rst** (optional, highly recommended)
* CREDITS.rst (optional)

Content of this README will also be drawn from the addon manifest,
from keys such as name, authors, maintainers, development_status,
and license.

A good, one sentence summary in the manifest is also highly recommended.


Automatic changelog generation
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

`HISTORY.rst` can be auto generated using `towncrier <https://pypi.org/project/towncrier>`_.

Just put towncrier compatible changelog fragments into `readme/newsfragments`
and the changelog file will be automatically generated and updated when a new fragment is added.

Please refer to `towncrier` documentation to know more.

NOTE: the changelog will be automatically generated when using `/ocabot merge $option`.
If you need to run it manually, refer to `OCA/maintainer-tools README <https://github.com/OCA/maintainer-tools>`_.
2 changes: 1 addition & 1 deletion product_digi_sync/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Allows for syncing products to Digi using the @Fresh api""",
"author": "Gedeelde Weelde",
"license": "AGPL-3",
"website": "https://www.yourcompany.com",
"website": "https://github.com/Gedeelde-Weelde/dutch-food-coop-odoo",
# Categories can be used to filter modules in modules listing
# Check https://github.com/odoo/odoo/blob/16.0/odoo/addons/base/data/ir_module_category_data.xml
# for the full list
Expand Down
2 changes: 1 addition & 1 deletion product_digi_sync/views/digi_client_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<field name="name">digi_client_tree_view</field>
<field name="model">product_digi_sync.digi_client</field>
<field name="arch" type="xml">
<tree string="Digi Client List">
<tree>
<field name="name" />
<field name="username" />
</tree>
Expand Down
Loading

0 comments on commit 8b34b7c

Please sign in to comment.