File tree Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Original file line number Diff line number Diff line change 1+ coverage == 5.3
12importlib_metadata == 2.0.0
23jsonschema == 3.2.0
34pytest == 6.2.0
45pytest-forked == 1.3.0
56pytest-parallel == 0.1.0
6- coverage == 5.3
7+ requests == 2.25.1
78setuptools == 50.3.0
89wcwidth == 0.2.5
910PyYAML == 5.3.1
Original file line number Diff line number Diff line change 1+ # Copyright 2016-2021 Swiss National Supercomputing Centre (CSCS/ETH Zurich)
2+ # ReFrame Project Developers. See the top-level LICENSE file for details.
3+ #
4+ # SPDX-License-Identifier: BSD-3-Clause
5+
6+
7+ import io
8+ import pytest
9+ import requests
10+
11+ import reframe .frontend .ci as ci
12+ import reframe .frontend .dependencies as dependencies
13+ import reframe .frontend .executors as executors
14+ from reframe .frontend .loader import RegressionCheckLoader
15+
16+
17+ def test_ci_gitlab_pipeline ():
18+ loader = RegressionCheckLoader ([
19+ 'unittests/resources/checks_unlisted/deps_complex.py'
20+ ])
21+ cases = dependencies .toposort (
22+ dependencies .build_deps (
23+ executors .generate_testcases (loader .load_all ())
24+ )[0 ]
25+ )
26+ with io .StringIO () as fp :
27+ ci .emit_pipeline (fp , cases )
28+ yaml = fp .getvalue ()
29+
30+ response = requests .post ('https://gitlab.com/api/v4/ci/lint' ,
31+ data = {'content' : {yaml }})
32+ assert response .ok
33+ assert response .json ()['status' ] == 'valid'
You can’t perform that action at this time.
0 commit comments