Skip to content

Commit

Permalink
Merge pull request #92 from IntelPython/workflow-permissions
Browse files Browse the repository at this point in the history
Workflow sets default permissions
  • Loading branch information
oleksandr-pavlyk authored Feb 20, 2024
2 parents e987644 + 7c3178d commit 8e7175f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/conda-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ name: Conda package

on: push

permissions: read-all

env:
PACKAGE_NAME: mkl_fft
MODULE_NAME: mkl_fft
TEST_ENV_NAME: test_mkl_fft

jobs:
build:
Expand Down Expand Up @@ -86,7 +89,7 @@ jobs:
- name: Collect dependencies
run: |
CHANNELS="-c $GITHUB_WORKSPACE/channel ${{ env.CHANNELS }}"
conda create -n test_mkl_fft $PACKAGE_NAME python=${{ matrix.python }} $CHANNELS --only-deps --dry-run > lockfile
conda create -n ${{ env.TEST_ENV_NAME }} $PACKAGE_NAME python=${{ matrix.python }} $CHANNELS --only-deps --dry-run > lockfile
- name: Display lockfile
run: cat lockfile
- name: Set pkgs_dirs
Expand All @@ -107,13 +110,13 @@ jobs:
- name: Install mkl_fft
run: |
CHANNELS="-c $GITHUB_WORKSPACE/channel ${{ env.CHANNELS }}"
conda create -n test_mkl_fft python=${{ matrix.python }} $PACKAGE_NAME pytest $CHANNELS
conda create -n ${{ env.TEST_ENV_NAME }} python=${{ matrix.python }} $PACKAGE_NAME pytest $CHANNELS
# Test installed packages
conda list -n test_mkl_fft
conda list -n ${{ env.TEST_ENV_NAME }}
- name: Run tests
run: |
source $CONDA/etc/profile.d/conda.sh
conda activate test_mkl_fft
conda activate ${{ env.TEST_ENV_NAME }}
pytest -v --pyargs $MODULE_NAME
build_windows:
Expand Down

0 comments on commit 8e7175f

Please sign in to comment.