Openeye License Check #552
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Openeye License Check" | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
schedule: | |
# At 07:00 UTC everyday. | |
- cron: "0 7 * * *" | |
concurrency: | |
group: "${{ github.workflow }}-${{ github.ref }}" | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash -l {0} | |
jobs: | |
openeye-license-check: | |
runs-on: ubuntu-latest | |
env: | |
OE_LICENSE: ${{ github.workspace }}/oe_license.txt | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup conda env | |
uses: mamba-org/provision-with-micromamba@main | |
with: | |
cache-downloads: true | |
environment-file: false | |
- name: Install OpenEye tools | |
run: conda install -c conda-forge -c openeye openeye-toolkits | |
- name: Check Openeye License | |
env: | |
OE_LICENSE_TEXT: ${{ secrets.OE_LICENSE }} | |
run: | | |
echo "${OE_LICENSE_TEXT}" > ${OE_LICENSE} | |
conda run -n base python -c "import openeye; assert openeye.oechem.OEChemIsLicensed(), 'OpenEye license checks failed!'" |