-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (37 loc) · 971 Bytes
/
ci-i18n.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: CI-i18n
# workflow for translate script testing
on:
pull_request:
paths_ignore:
- "translations/**"
- "locale_sources/**"
- aiida-core
push:
paths_ignore:
- "translations/**"
- "locale_sources/**"
- aiida-core
branches:
- main
jobs:
auto-trans-tool-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install aiida-core-i18n
run: |
pip install -e .[dev]
- name: Run tests
run: |
pytest -k "not apicall" tests -v --cov
- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
name: aiida-core-i18n
fail_ci_if_error: false # don't fail job, if coverage upload fails
if: github.event_name != 'pull_request'