- 
                Notifications
    You must be signed in to change notification settings 
- Fork 0
PyPI + Conda builds #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
86732ec
              7fce7cf
              db005cd
              d8bace0
              f097d51
              e76d87b
              a886cab
              28f6353
              cde2efa
              2918023
              88f6ea5
              00ef6e1
              11a5de8
              ec96e89
              22cd17f
              93290a2
              91d1e4d
              0cd5007
              b992394
              5a3f39f
              4a5b441
              8b00683
              5872d4a
              f43034e
              e159b8c
              865d989
              63e311b
              2ec36e4
              20bc5d6
              2d7344c
              c46457a
              b53e180
              ac28a56
              9a66524
              9705b68
              1284ed1
              527b977
              1417d03
              e53385b
              485911a
              81a5b6d
              9b41d6e
              d74f353
              ca87f33
              01ef012
              516cc0a
              510a234
              556e93f
              f1c3783
              d6bcc3c
              5346fdf
              51edeaf
              501b42a
              347bfb9
              60a3168
              112392d
              1c19a51
              061fab2
              bca9383
              1f7e096
              6b8ee9a
              2709892
              2a58d6d
              12d57d7
              f662123
              ae2e068
              8c191d6
              9a4f009
              bc5af82
              6692c99
              c057bb2
              27cb32e
              fcb994e
              6810a69
              d37a039
              bfb6212
              88facdb
              e566d37
              997aacc
              9f0909f
              1e7b3d6
              File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,249 @@ | |||||||||||||||||||||||
| name: Test code and publish package | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| on: | |||||||||||||||||||||||
| workflow_dispatch: | |||||||||||||||||||||||
| workflow_call: | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| jobs: | |||||||||||||||||||||||
| deploy_linux_cuda11: | |||||||||||||||||||||||
| strategy: | |||||||||||||||||||||||
| fail-fast: false | |||||||||||||||||||||||
| matrix: | |||||||||||||||||||||||
| config_file: | |||||||||||||||||||||||
| [ | |||||||||||||||||||||||
| "conda_package/variants/linux_64_c_compiler_version11cuda_compilernvcccuda_compiler_version11.8cxx_compiler_version11numpy1.22python3.9.____cpython.yaml", | |||||||||||||||||||||||
| "conda_package/variants/linux_64_c_compiler_version11cuda_compilernvcccuda_compiler_version11.8cxx_compiler_version11numpy1.22python3.10.____cpython.yaml", | |||||||||||||||||||||||
| "conda_package/variants/linux_64_c_compiler_version11cuda_compilernvcccuda_compiler_version11.8cxx_compiler_version11numpy1.23python3.11.____cpython.yaml", | |||||||||||||||||||||||
| "conda_package/variants/linux_64_c_compiler_version11cuda_compilernvcccuda_compiler_version11.8cxx_compiler_version11numpy1.26python3.12.____cpython.yaml", | |||||||||||||||||||||||
| ] | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| runs-on: ubuntu-latest | |||||||||||||||||||||||
| container: quay.io/condaforge/linux-anvil-cuda:11.8 | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| steps: | |||||||||||||||||||||||
| - uses: actions/checkout@v1 | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| - name: Build openmm package | |||||||||||||||||||||||
| shell: bash -l {0} | |||||||||||||||||||||||
| run: | | |||||||||||||||||||||||
| git config --global --add safe.directory '*' | |||||||||||||||||||||||
| conda build conda_package/recipe/ --variant-config-files ${{ matrix.config_file }} --output-folder ./pkg/ --no-include-recipe --no-anaconda-upload -c conda-forge | |||||||||||||||||||||||
| env: | |||||||||||||||||||||||
| OPENMM_VERSION: ${{ github.ref_name }} | |||||||||||||||||||||||
| OPENMM_COMMIT: ${{ github.sha }} | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| - name: Upload to conda | |||||||||||||||||||||||
| shell: bash -l {0} | |||||||||||||||||||||||
| run: | | |||||||||||||||||||||||
| /opt/conda/bin/anaconda -t ${{ secrets.ANACONDA_TOKEN_BASIC }} upload -u acellera pkg/linux-64/openmm-*.tar.bz2 --skip-existing | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| deploy_linux_cuda12: | |||||||||||||||||||||||
| strategy: | |||||||||||||||||||||||
| fail-fast: false | |||||||||||||||||||||||
| matrix: | |||||||||||||||||||||||
| config_file: | |||||||||||||||||||||||
| [ | |||||||||||||||||||||||
| "conda_package/variants/linux_64_c_compiler_version12cuda_compilercuda-nvcccuda_compiler_version12.0cxx_compiler_version12numpy1.22python3.9.____cpython.yaml", | |||||||||||||||||||||||
| "conda_package/variants/linux_64_c_compiler_version12cuda_compilercuda-nvcccuda_compiler_version12.0cxx_compiler_version12numpy1.22python3.10.____cpython.yaml", | |||||||||||||||||||||||
| "conda_package/variants/linux_64_c_compiler_version12cuda_compilercuda-nvcccuda_compiler_version12.0cxx_compiler_version12numpy1.23python3.11.____cpython.yaml", | |||||||||||||||||||||||
| "conda_package/variants/linux_64_c_compiler_version12cuda_compilercuda-nvcccuda_compiler_version12.0cxx_compiler_version12numpy1.26python3.12.____cpython.yaml", | |||||||||||||||||||||||
| ] | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| runs-on: ubuntu-latest | |||||||||||||||||||||||
| container: quay.io/condaforge/linux-anvil-cos7-x86_64 | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| steps: | |||||||||||||||||||||||
| - uses: actions/checkout@v1 | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| - name: Build openmm package | |||||||||||||||||||||||
| shell: bash -l {0} | |||||||||||||||||||||||
| run: | | |||||||||||||||||||||||
| git config --global --add safe.directory '*' | |||||||||||||||||||||||
| conda build conda_package/recipe/ --variant-config-files ${{ matrix.config_file }} --output-folder ./pkg/ --no-include-recipe --no-anaconda-upload -c conda-forge | |||||||||||||||||||||||
| env: | |||||||||||||||||||||||
| OPENMM_VERSION: ${{ github.ref_name }} | |||||||||||||||||||||||
| OPENMM_COMMIT: ${{ github.sha }} | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| - name: Upload to conda | |||||||||||||||||||||||
| shell: bash -l {0} | |||||||||||||||||||||||
| run: | | |||||||||||||||||||||||
| /opt/conda/bin/anaconda -t ${{ secrets.ANACONDA_TOKEN_BASIC }} upload -u acellera pkg/linux-64/openmm-*.tar.bz2 --skip-existing | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| deploy_osx_64: | |||||||||||||||||||||||
| 
      Comment on lines
    
      +41
     to 
      +72
    
   Check warningCode scanning / CodeQL Workflow does not contain permissions Medium 
      Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
               Copilot AutofixAI 5 months ago To fix the issue, we will add a  
 The  
  Suggested changeset
  1
 
      
    .github/workflows/conda_publish.yml
     
 
 
                  Copilot is powered by AI and may make mistakes. Always verify output.
                 Positive FeedbackNegative Feedback 
                  
                  Refresh and try again.
                 | |||||||||||||||||||||||
| strategy: | |||||||||||||||||||||||
| fail-fast: false | |||||||||||||||||||||||
| matrix: | |||||||||||||||||||||||
| config_file: | |||||||||||||||||||||||
| [ | |||||||||||||||||||||||
| "conda_package/variants/osx_64_numpy1.22opencl_implapplepython3.9.____cpython.yaml", | |||||||||||||||||||||||
| "conda_package/variants/osx_64_numpy1.22opencl_implapplepython3.9.____cpython.yaml", | |||||||||||||||||||||||
| "conda_package/variants/osx_64_numpy1.22opencl_implkhronospython3.10.____cpython.yaml", | |||||||||||||||||||||||
| "conda_package/variants/osx_64_numpy1.22opencl_implkhronospython3.9.____cpython.yaml", | |||||||||||||||||||||||
| "conda_package/variants/osx_64_numpy1.23opencl_implapplepython3.11.____cpython.yaml", | |||||||||||||||||||||||
| "conda_package/variants/osx_64_numpy1.23opencl_implkhronospython3.11.____cpython.yaml", | |||||||||||||||||||||||
| "conda_package/variants/osx_64_numpy1.26opencl_implapplepython3.12.____cpython.yaml", | |||||||||||||||||||||||
| "conda_package/variants/osx_64_numpy1.26opencl_implkhronospython3.12.____cpython.yaml", | |||||||||||||||||||||||
| ] | |||||||||||||||||||||||
| runs-on: macos-13 | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| steps: | |||||||||||||||||||||||
| - uses: actions/checkout@v4 | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| - uses: conda-incubator/setup-miniconda@v3 | |||||||||||||||||||||||
| with: | |||||||||||||||||||||||
| miniconda-version: "latest" | |||||||||||||||||||||||
| activate-environment: ../deploy-env | |||||||||||||||||||||||
| python-version: "3.10" | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| - name: Build openmm package | |||||||||||||||||||||||
| shell: bash -l {0} | |||||||||||||||||||||||
| run: | | |||||||||||||||||||||||
| git config --global --add safe.directory '*' | |||||||||||||||||||||||
| conda install anaconda-client conda-build | |||||||||||||||||||||||
| conda build conda_package/recipe/ --variant-config-files ${{ matrix.config_file }} --output-folder ./pkg/ --no-include-recipe --no-anaconda-upload -c conda-forge | |||||||||||||||||||||||
| env: | |||||||||||||||||||||||
| OPENMM_VERSION: ${{ github.ref_name }} | |||||||||||||||||||||||
| OPENMM_COMMIT: ${{ github.sha }} | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| - name: Upload to conda | |||||||||||||||||||||||
| shell: bash -l {0} | |||||||||||||||||||||||
| run: | | |||||||||||||||||||||||
| anaconda -t ${{ secrets.ANACONDA_TOKEN_BASIC }} upload -u acellera pkg/*/openmm-*.conda --skip-existing | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| deploy_osx_arm64: | |||||||||||||||||||||||
| 
      Comment on lines
    
      +73
     to 
      +113
    
   Check warningCode scanning / CodeQL Workflow does not contain permissions Medium 
      Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
               Copilot AutofixAI 5 months ago To fix the issue, we need to add a  The  
  Suggested changeset
  1
 
      
    .github/workflows/conda_publish.yml
     
 
 
                  Copilot is powered by AI and may make mistakes. Always verify output.
                 Positive FeedbackNegative Feedback 
                  
                  Refresh and try again.
                 | |||||||||||||||||||||||
| strategy: | |||||||||||||||||||||||
| fail-fast: false | |||||||||||||||||||||||
| matrix: | |||||||||||||||||||||||
| config_file: | |||||||||||||||||||||||
| [ | |||||||||||||||||||||||
| "conda_package/variants/osx_arm64_numpy1.22opencl_implapplepython3.10.____cpython.yaml", | |||||||||||||||||||||||
| "conda_package/variants/osx_arm64_numpy1.22opencl_implapplepython3.9.____cpython.yaml", | |||||||||||||||||||||||
| "conda_package/variants/osx_arm64_numpy1.22opencl_implkhronospython3.10.____cpython.yaml", | |||||||||||||||||||||||
| "conda_package/variants/osx_arm64_numpy1.22opencl_implkhronospython3.9.____cpython.yaml", | |||||||||||||||||||||||
| "conda_package/variants/osx_arm64_numpy1.23opencl_implapplepython3.11.____cpython.yaml", | |||||||||||||||||||||||
| "conda_package/variants/osx_arm64_numpy1.23opencl_implkhronospython3.11.____cpython.yaml", | |||||||||||||||||||||||
| "conda_package/variants/osx_arm64_numpy1.26opencl_implapplepython3.12.____cpython.yaml", | |||||||||||||||||||||||
| "conda_package/variants/osx_arm64_numpy1.26opencl_implkhronospython3.12.____cpython.yaml", | |||||||||||||||||||||||
| ] | |||||||||||||||||||||||
| runs-on: macos-latest | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| steps: | |||||||||||||||||||||||
| - uses: actions/checkout@v4 | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| - uses: conda-incubator/setup-miniconda@v3 | |||||||||||||||||||||||
| with: | |||||||||||||||||||||||
| miniconda-version: "latest" | |||||||||||||||||||||||
| activate-environment: ../deploy-env | |||||||||||||||||||||||
| python-version: "3.10" | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| - name: Build openmm package | |||||||||||||||||||||||
| shell: bash -l {0} | |||||||||||||||||||||||
| run: | | |||||||||||||||||||||||
| git config --global --add safe.directory '*' | |||||||||||||||||||||||
| conda install anaconda-client conda-build | |||||||||||||||||||||||
| conda build conda_package/recipe/ --variant-config-files ${{ matrix.config_file }} --output-folder ./pkg/ --no-include-recipe --no-anaconda-upload -c conda-forge | |||||||||||||||||||||||
| env: | |||||||||||||||||||||||
| OPENMM_VERSION: ${{ github.ref_name }} | |||||||||||||||||||||||
| OPENMM_COMMIT: ${{ github.sha }} | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| - name: Upload to conda | |||||||||||||||||||||||
| shell: bash -l {0} | |||||||||||||||||||||||
| run: | | |||||||||||||||||||||||
| anaconda -t ${{ secrets.ANACONDA_TOKEN_BASIC }} upload -u acellera pkg/*/openmm-*.conda --skip-existing | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| deploy_win_64_cuda11: | |||||||||||||||||||||||
| 
      Comment on lines
    
      +114
     to 
      +154
    
   Check warningCode scanning / CodeQL Workflow does not contain permissions Medium 
      Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
               Copilot AutofixAI 5 months ago To fix the issue, we will add a  
 This ensures that the workflow has only the permissions it needs to function correctly. 
  Suggested changeset
  1
 
      
    .github/workflows/conda_publish.yml
     
 
 
                  Copilot is powered by AI and may make mistakes. Always verify output.
                 Positive FeedbackNegative Feedback 
                  
                  Refresh and try again.
                 | |||||||||||||||||||||||
| strategy: | |||||||||||||||||||||||
| fail-fast: false | |||||||||||||||||||||||
| matrix: | |||||||||||||||||||||||
| config_file: | |||||||||||||||||||||||
| [ | |||||||||||||||||||||||
| "conda_package/variants/win_64_cuda_compilernvcccuda_compiler_version11.8numpy1.22python3.10.____cpython.yaml", | |||||||||||||||||||||||
| "conda_package/variants/win_64_cuda_compilernvcccuda_compiler_version11.8numpy1.22python3.9.____cpython.yaml", | |||||||||||||||||||||||
| "conda_package/variants/win_64_cuda_compilernvcccuda_compiler_version11.8numpy1.23python3.11.____cpython.yaml", | |||||||||||||||||||||||
| "conda_package/variants/win_64_cuda_compilernvcccuda_compiler_version11.8numpy1.26python3.12.____cpython.yaml", | |||||||||||||||||||||||
| ] | |||||||||||||||||||||||
| runs-on: windows-2022 | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| steps: | |||||||||||||||||||||||
| - uses: actions/checkout@v4 | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| - uses: conda-incubator/setup-miniconda@v3 | |||||||||||||||||||||||
| with: | |||||||||||||||||||||||
| miniconda-version: "latest" | |||||||||||||||||||||||
| activate-environment: ../deploy-env | |||||||||||||||||||||||
| python-version: "3.10" | |||||||||||||||||||||||
| channels: conda-forge | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| - name: Add msbuild to PATH | |||||||||||||||||||||||
| uses: microsoft/setup-msbuild@v2 | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| - name: Setup CUDA Toolkit | |||||||||||||||||||||||
| id: cuda-toolkit | |||||||||||||||||||||||
| shell: pwsh | |||||||||||||||||||||||
| run: conda_package/scripts/setup_cuda.ps1 | |||||||||||||||||||||||
| env: | |||||||||||||||||||||||
| INPUT_CUDA_VERSION: 11.8.0 | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| - name: Build openmm package | |||||||||||||||||||||||
| shell: bash -l {0} | |||||||||||||||||||||||
| run: | | |||||||||||||||||||||||
| git config --global --add safe.directory '*' | |||||||||||||||||||||||
| conda install anaconda-client conda-build | |||||||||||||||||||||||
| conda clean --all -y | |||||||||||||||||||||||
| conda build conda_package/recipe/ --variant-config-files ${{ matrix.config_file }} --output-folder ./pkg/ --no-include-recipe --no-anaconda-upload -c conda-forge | |||||||||||||||||||||||
| env: | |||||||||||||||||||||||
| OPENMM_VERSION: ${{ github.ref_name }} | |||||||||||||||||||||||
| OPENMM_COMMIT: ${{ github.sha }} | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| - name: Upload to conda | |||||||||||||||||||||||
| shell: bash -l {0} | |||||||||||||||||||||||
| run: | | |||||||||||||||||||||||
| anaconda -t ${{ secrets.ANACONDA_TOKEN_BASIC }} upload -u acellera pkg/*/openmm-*.conda --skip-existing | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| deploy_win_64_cuda12: | |||||||||||||||||||||||
| strategy: | |||||||||||||||||||||||
| fail-fast: false | |||||||||||||||||||||||
| matrix: | |||||||||||||||||||||||
| config_file: | |||||||||||||||||||||||
| [ | |||||||||||||||||||||||
| "conda_package/variants/win_64_cuda_compilercuda-nvcccuda_compiler_version12.0numpy1.22python3.10.____cpython.yaml", | |||||||||||||||||||||||
| "conda_package/variants/win_64_cuda_compilercuda-nvcccuda_compiler_version12.0numpy1.22python3.9.____cpython.yaml", | |||||||||||||||||||||||
| "conda_package/variants/win_64_cuda_compilercuda-nvcccuda_compiler_version12.0numpy1.23python3.11.____cpython.yaml", | |||||||||||||||||||||||
| "conda_package/variants/win_64_cuda_compilercuda-nvcccuda_compiler_version12.0numpy1.26python3.12.____cpython.yaml", | |||||||||||||||||||||||
| ] | |||||||||||||||||||||||
| runs-on: windows-2022 | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| steps: | |||||||||||||||||||||||
| - uses: actions/checkout@v4 | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| - uses: conda-incubator/setup-miniconda@v3 | |||||||||||||||||||||||
| with: | |||||||||||||||||||||||
| miniconda-version: "latest" | |||||||||||||||||||||||
| activate-environment: ../deploy-env | |||||||||||||||||||||||
| python-version: "3.10" | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| - name: Add msbuild to PATH | |||||||||||||||||||||||
| uses: microsoft/setup-msbuild@v2 | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| - name: Setup CUDA Toolkit | |||||||||||||||||||||||
| id: cuda-toolkit | |||||||||||||||||||||||
| shell: pwsh | |||||||||||||||||||||||
| run: conda_package/scripts/setup_cuda.ps1 | |||||||||||||||||||||||
| env: | |||||||||||||||||||||||
| INPUT_CUDA_VERSION: 12.0.0 | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| - name: Build openmm package | |||||||||||||||||||||||
| shell: bash -l {0} | |||||||||||||||||||||||
| run: | | |||||||||||||||||||||||
| git config --global --add safe.directory '*' | |||||||||||||||||||||||
| conda install anaconda-client conda-build | |||||||||||||||||||||||
| conda clean --all -y | |||||||||||||||||||||||
| conda build conda_package/recipe/ --variant-config-files ${{ matrix.config_file }} --output-folder ./pkg/ --no-include-recipe --no-anaconda-upload -c conda-forge | |||||||||||||||||||||||
| env: | |||||||||||||||||||||||
| OPENMM_VERSION: ${{ github.ref_name }} | |||||||||||||||||||||||
| OPENMM_COMMIT: ${{ github.sha }} | |||||||||||||||||||||||
|  | |||||||||||||||||||||||
| - name: Upload to conda | |||||||||||||||||||||||
| shell: bash -l {0} | |||||||||||||||||||||||
| run: | | |||||||||||||||||||||||
| anaconda -t ${{ secrets.ANACONDA_TOKEN_BASIC }} upload -u acellera pkg/*/openmm-*.conda --skip-existing | |||||||||||||||||||||||
| 
      Comment on lines
    
      +204
     to 
      +249
    
   Check warningCode scanning / CodeQL Workflow does not contain permissions Medium 
      Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
               Copilot AutofixAI 5 months ago To fix the issue, we will add a  
 This change will ensure that the workflow has only the permissions it needs, reducing the risk of unintended access. 
  Suggested changeset
  1
 
      
    .github/workflows/conda_publish.yml
     
 
 
                  Copilot is powered by AI and may make mistakes. Always verify output.
                 Positive FeedbackNegative Feedback 
                  
                  Refresh and try again.
                 | |||||||||||||||||||||||
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Copilot Autofix
AI 5 months ago
To fix the issue, we will add a
permissionsblock at the root level of the workflow file. This block will define the minimum required permissions for the workflow. Based on the actions performed in the workflow (e.g., checking out the repository, building packages, and uploading them), the workflow likely requirescontents: readand possiblypackages: writefor uploading packages. We will analyze the steps and set the permissions accordingly.