-
Notifications
You must be signed in to change notification settings - Fork 1
107 lines (94 loc) · 2.92 KB
/
Copy pathtrigger_validation.yml
File metadata and controls
107 lines (94 loc) · 2.92 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
name: Trigger validation
on:
workflow_call:
inputs:
boinor-branch:
description: 'boinor branch to validate'
default: 'main'
required: false
type: string
validation-branch:
description: 'validation branch to validate'
default: 'main'
required: false
type: string
jobs:
validation-tests:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.13]
steps:
- uses: actions/checkout@v4
with:
repository: 'boinor/boinor'
ref: ${{ inputs.boinor-branch }}
path: boinor
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: install the package
run: python3 -m pip install .
working-directory: boinor
- uses: actions/checkout@v4
with:
repository: 'boinor/validation'
ref: ${{ inputs.validation-branch }}
path: validation
- uses: ricardochaves/python-lint@v1.3.0
with:
python-root-list: "validation/orekit/"
use-black: true
use-flake8: true
use-isort: false
use-pylint: false
use-pycodestyle: false
use-mypy: false
# Tool's configuration is the same as boinor
extra-black-options: "--check --diff"
extra-isort-options: "--check-only --diff"
extra-flake8-options: "--ignore=E203,E266,E501,W503 --max-line-length=80 --max-complexity=18 --select=B,C,E,F,W,T4,B9"
# Execute tests to check if they are still valid for new features
orekit-validation-tests:
name: Orekit validation tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.13]
defaults:
run:
shell: bash -l {0}
# Steps to be executed during tests checking job
steps:
- uses: actions/checkout@v4
with:
repository: 'boinor/boinor'
ref: ${{ inputs.boinor-branch }}
path: boinor
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: install the package
run: python3 -m pip install .
working-directory: boinor
- uses: actions/checkout@v4
with:
repository: 'boinor/validation'
ref: ${{ inputs.validation-branch }}
path: validation-orekit
# Install miniconda
- uses: conda-incubator/setup-miniconda@v2
with:
environment-file: validation-orekit/orekit/environment.yml
python-version: ${{ matrix.python-version }}
auto-activate-base: false
activate-environment: boinor-validation
- run: |
conda info
conda list
# pytest orekit/tests/