Skip to content

Commit 453a087

Browse files
committed
Add running erf tests in worflows in public CI: coverage, check oneMath, and cron tests run
1 parent 299922c commit 453a087

File tree

5 files changed

+18
-5
lines changed

5 files changed

+18
-5
lines changed

.github/workflows/check-onemath.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515
build-with-oneapi-env: 'environments/build_with_oneapi.yml'
1616
dpctl-pkg-env: 'environments/dpctl_pkg.yml'
1717
oneapi-pkgs-env: 'environments/oneapi_pkgs.yml'
18+
test-pkg-env: 'environments/test.yml'
1819
test-env-name: 'test_onemath'
1920
rerun-tests-on-failure: 'true'
2021
rerun-tests-max-attempts: 2
@@ -49,7 +50,10 @@ jobs:
4950

5051
- name: Merge conda env files
5152
run: |
52-
conda-merge ${{ env.dpctl-pkg-env }} ${{ env.oneapi-pkgs-env }} ${{ env.build-with-oneapi-env }} > ${{ env.environment-file }}
53+
conda-merge ${{ env.dpctl-pkg-env }} \
54+
${{ env.oneapi-pkgs-env }} \
55+
${{ env.build-with-oneapi-env }} \
56+
${{ env.test-pkg-env }} > ${{ env.environment-file }}
5357
cat ${{ env.environment-file }}
5458
5559
- name: Upload artifact

.github/workflows/cron-run-tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ jobs:
8484
id: install_dpnp
8585
continue-on-error: true
8686
run: |
87-
mamba install ${{ env.package-name }}=${{ steps.find_latest_tag.outputs.tag }} pytest ${{ env.channels-list }}
87+
mamba install ${{ env.package-name }}=${{ steps.find_latest_tag.outputs.tag }} pytest scipy ${{ env.channels-list }}
8888
8989
- name: ReInstall dpnp
9090
if: steps.install_dpnp.outcome == 'failure'
9191
run: |
92-
mamba install ${{ env.package-name }}=${{ steps.find_latest_tag.outputs.tag }} pytest ${{ env.channels-list }}
92+
mamba install ${{ env.package-name }}=${{ steps.find_latest_tag.outputs.tag }} pytest scipy ${{ env.channels-list }}
9393
9494
- name: List installed packages
9595
run: mamba list

.github/workflows/generate_coverage.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
environment-file: 'environments/environment.yml'
2626
build-with-oneapi-env: 'environments/build_with_oneapi.yml'
2727
coverage-env: 'environments/coverage.yml'
28+
test-pkg-env: 'environments/test.yml'
2829
oneapi-pkgs-env: ''
2930
# Enable env when it's required to use only conda packages without OneAPI installation
3031
# oneapi-pkgs-env: '${{ github.workspace }}/environments/oneapi_pkgs.yml'
@@ -73,7 +74,10 @@ jobs:
7374

7475
- name: Merge conda env files
7576
run: |
76-
conda-merge ${{ env.build-with-oneapi-env }} ${{ env.coverage-env }} ${{ env.oneapi-pkgs-env }} > ${{ env.environment-file }}
77+
conda-merge ${{ env.build-with-oneapi-env }} \
78+
${{ env.coverage-env }} \
79+
${{ env.oneapi-pkgs-env }} \
80+
${{ env.test-pkg-env }} > ${{ env.environment-file }}
7781
cat ${{ env.environment-file }}
7882
7983
- name: Setup miniconda

environments/build_with_oneapi.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ dependencies:
66
- cython
77
- ninja
88
- numpy
9-
- pytest
109
- setuptools
1110
- scikit-build
1211
- versioneer

environments/test_env.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: Packages to test DPNP
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- pytest
6+
- scipy

0 commit comments

Comments
 (0)