Skip to content

Commit 548e741

Browse files
fix: Adapt CICD tests
1 parent e7c6b89 commit 548e741

File tree

2 files changed

+5
-18
lines changed

2 files changed

+5
-18
lines changed

.github/workflows/ci_cd.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -98,33 +98,17 @@ jobs:
9898
tests:
9999
name: "Tests"
100100
runs-on: ${{ matrix.os }}
101-
needs: [code-style]
101+
needs: [smoke-tests]
102102
strategy:
103103
matrix:
104104
os: [ubuntu-latest, windows-latest]
105105
python-version: ['3.9', '3.12']
106106
fail-fast: false
107107
steps:
108-
- name: Checkout code
109-
uses: actions/checkout@v4
110-
111-
- name: Set up Python ${{ matrix.python-version }}
112-
uses: actions/setup-python@v5
113-
with:
114-
python-version: ${{ matrix.python-version }}
115-
116-
- name: Install dependencies
117-
run: |
118-
python -m pip install --upgrade pip
119-
pip install -r requirements.txt
120108

121109
- name: Testing
122110
uses: ansys/actions/tests-pytest@v6
123111
timeout-minutes: 12
124-
with:
125-
checkout: false
126-
skip-install: true
127-
pytest-extra-args: "--cov=ansys.allie.flowkit.python --cov-report=term --cov-report=html:.cov/html --cov-report=xml:.cov/coverage.xml"
128112

129113
- name: Upload coverage results (HTML)
130114
uses: actions/upload-artifact@v4

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,7 @@ known-first-party = ["ansys"]
118118
convention = "google"
119119

120120
[tool.setuptools.packages.find]
121-
include = ["app", "docker", "configs"]
121+
include = ["app", "docker", "configs"]
122+
123+
[tool.pytest.ini_options]
124+
addopts = "--cov=ansys.allie.flowkit.python --cov-report=term --cov-report=html:.cov/html --cov-report=xml:.cov/coverage.xml"

0 commit comments

Comments
 (0)