Skip to content

Commit fc28dcd

Browse files
committed
Update pre-commit conf + GH actions
1 parent ddab8cf commit fc28dcd

File tree

4 files changed

+76
-47
lines changed

4 files changed

+76
-47
lines changed

.copier-answers.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
# Do NOT update manually; changes here will be overwritten by Copier
22
_commit: v1.14.1
33
_src_path: gh:oca/oca-addons-repo-template
4-
ci: Travis
4+
ci: GitHub
55
dependency_installation_mode: PIP
66
generate_requirements_txt: true
77
github_check_license: true
88
github_ci_extra_env: {}
99
github_enable_codecov: true
1010
github_enable_makepot: true
1111
github_enable_stale_action: true
12-
github_enforce_dev_status_compatibility: true
12+
github_enforce_dev_status_compatibility: false
1313
include_wkhtmltopdf: false
1414
odoo_version: 14.0
1515
org_name: Odoo Community Association (OCA)
1616
org_slug: OCA
1717
rebel_module_groups: []
18-
repo_description: 'TODO: add repo description.'
18+
repo_description: Odoo Accountant closing tools
1919
repo_name: account-closing
2020
repo_slug: account-closing
2121
repo_website: https://github.com/OCA/account-closing

.github/workflows/test.yml

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: tests
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "14.0*"
7+
push:
8+
branches:
9+
- "14.0"
10+
- "14.0-ocabot-*"
11+
12+
jobs:
13+
unreleased-deps:
14+
runs-on: ubuntu-latest
15+
name: Detect unreleased dependencies
16+
steps:
17+
- uses: actions/checkout@v2
18+
- run: |
19+
for reqfile in requirements.txt test-requirements.txt ; do
20+
if [ -f ${reqfile} ] ; then
21+
result=0
22+
# reject non-comment lines that contain a / (i.e. URLs, relative paths)
23+
grep "^[^#].*/" ${reqfile} || result=$?
24+
if [ $result -eq 0 ] ; then
25+
echo "Unreleased dependencies found in ${reqfile}."
26+
exit 1
27+
fi
28+
fi
29+
done
30+
test:
31+
runs-on: ubuntu-22.04
32+
container: ${{ matrix.container }}
33+
name: ${{ matrix.name }}
34+
strategy:
35+
fail-fast: false
36+
matrix:
37+
include:
38+
- container: ghcr.io/oca/oca-ci/py3.6-odoo14.0:latest
39+
makepot: "true"
40+
name: test with Odoo
41+
- container: ghcr.io/oca/oca-ci/py3.6-ocb14.0:latest
42+
name: test with OCB
43+
services:
44+
postgres:
45+
image: postgres:9.6
46+
env:
47+
POSTGRES_USER: odoo
48+
POSTGRES_PASSWORD: odoo
49+
POSTGRES_DB: odoo
50+
ports:
51+
- 5432:5432
52+
steps:
53+
- uses: actions/checkout@v2
54+
with:
55+
persist-credentials: false
56+
- name: Install addons and dependencies
57+
run: oca_install_addons
58+
- name: Check licenses
59+
run: manifestoo -d . check-licenses
60+
- name: Check development status
61+
run: manifestoo -d . check-dev-status --default-dev-status=Beta
62+
continue-on-error: true
63+
- name: Initialize test db
64+
run: oca_init_test_database
65+
- name: Run tests
66+
run: oca_run_tests
67+
- uses: codecov/codecov-action@v1
68+
- name: Update .pot files
69+
run: oca_export_and_push_pot https://x-access-token:${{ secrets.GIT_PUSH_TOKEN }}@github.com/${{ github.repository }}
70+
if: ${{ matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'OCA' }}

.travis.yml

-42
This file was deleted.

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11

22
[![Runboat](https://img.shields.io/badge/runboat-Try%20me-875A7B.png)](https://runboat.odoo-community.org/builds?repo=OCA/account-closing&target_branch=14.0)
3-
[![Build Status](https://travis-ci.com/OCA/account-closing.svg?branch=14.0)](https://travis-ci.com/OCA/account-closing)
3+
[![Pre-commit Status](https://github.com/OCA/account-closing/actions/workflows/pre-commit.yml/badge.svg?branch=14.0)](https://github.com/OCA/account-closing/actions/workflows/pre-commit.yml?query=branch%3A14.0)
4+
[![Build Status](https://github.com/OCA/account-closing/actions/workflows/test.yml/badge.svg?branch=14.0)](https://github.com/OCA/account-closing/actions/workflows/test.yml?query=branch%3A14.0)
45
[![codecov](https://codecov.io/gh/OCA/account-closing/branch/14.0/graph/badge.svg)](https://codecov.io/gh/OCA/account-closing)
56
[![Translation Status](https://translation.odoo-community.org/widgets/account-closing-14-0/-/svg-badge.svg)](https://translation.odoo-community.org/engage/account-closing-14-0/?utm_source=widget)
67

78
<!-- /!\ do not modify above this line -->
89

910
# account-closing
1011

11-
TODO: add repo description.
12+
Odoo Accountant closing tools
1213

1314
<!-- /!\ do not modify below this line -->
1415

0 commit comments

Comments
 (0)