forked from ansys/pyansys-geometry
-
Notifications
You must be signed in to change notification settings - Fork 0
161 lines (135 loc) · 4.09 KB
/
ci_cd.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
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
name: GitHub CI
on:
pull_request:
workflow_dispatch:
push:
tags:
- "*"
branches:
- main
env:
MAIN_PYTHON_VERSION: '3.11'
MAIN_PYTHON_VERSION_WINDOWS_SELFHOSTED: '3.9'
PACKAGE_NAME: 'ansys-geometry-core'
DOCUMENTATION_CNAME: 'geometry.docs.pyansys.com'
ANSRV_GEO_IMAGE: 'ghcr.io/ansys/geometry'
ANSRV_GEO_IMAGE_WINDOWS_TAG: ghcr.io/ansys/geometry:windows-latest
ANSRV_GEO_PORT: 700
ANSRV_GEO_LICENSE_SERVER: ${{ secrets.LICENSE_SERVER }}
GEO_CONT_NAME: ans_geo
RESET_IMAGE_CACHE: 6
IS_WORKFLOW_RUNNING: True
ARTIFACTORY_VERSION: v242
MEILISEARCH_API_KEY: ${{ secrets.MEILISEARCH_API_KEY }}
MEILISEARCH_HOST_URL: ${{ vars.MEILISEARCH_HOST_URL }}
MEILISEARCH_PUBLIC_API_KEY: ${{ secrets.MEILISEARCH_PUBLIC_API_KEY }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# docker-style-0:
# name: FAIL - not allowed directory
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
# - name: PyAnsys dockerfile check
# uses: ansys/actions/docker-style@feat/lint_dockerfile
# with:
# directory: docker_folder
docker-style-1:
name: FAIL - DS - No Dockerfile
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: PyAnsys dockerfile check
uses: ansys/actions/docker-style@feat/lint_dockerfile
with:
directory: .devcontainer
docker-style-2:
name: FAIL - DS - No recursive search
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: PyAnsys dockerfile check
uses: ansys/actions/docker-style@feat/lint_dockerfile
with:
directory: docker
docker-style-3:
name: FAIL - DS - Error level is set to info
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: PyAnsys dockerfile check
uses: ansys/actions/docker-style@feat/lint_dockerfile
with:
directory: docker
recursive: true
docker-style-4:
name: SUCCESS - DS
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
docker-directory: ['docker', '.devcontainer']
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: PyAnsys dockerfile check
uses: ansys/actions/docker-style@feat/lint_dockerfile
with:
directory: ${{ matrix.docker-directory }}
recursive: true
error-level: 0
code-style-1:
name: SUCCESS - CS - No check by default
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: PyAnsys dockerfile check
uses: ansys/actions/code-style@feat/lint_dockerfile
code-style-2:
name: FAIL - CS - No recursive search
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: PyAnsys dockerfile check
uses: ansys/actions/code-style@feat/lint_dockerfile
with:
docker-lint: true
code-style-3:
name: FAIL - CS - Error level is set to info
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: PyAnsys dockerfile check
uses: ansys/actions/code-style@feat/lint_dockerfile
with:
docker-lint: true
docker-recursive: true
code-style-4:
name: SUCCESS - CS
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: PyAnsys dockerfile check
uses: ansys/actions/code-style@feat/lint_dockerfile
with:
docker-recursive: true
docker-error-level: 0
docker-lint: true
# docker-lint:
# name: Dockerfile linting through code-style action
# runs-on: ubuntu-latest
# steps:
# - name: Check code style
# uses: ansys/actions/code-style@feat/lint_dockerfile
# with:
# docker-recursive: true