Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hmacdope committed Feb 8, 2024
1 parent c0d67fb commit c5a819c
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: ci

on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
schedule:
# Nightly tests run on main by default:
# Scheduled workflows run on the latest commit on the default or base branch.
# (from https://help.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events-schedule)
- cron: "0 0 * * *"
workflow_dispatch:
merge_group:

concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true

defaults:
run:
shell: bash -l {0}


jobs:

env:
OE_LICENSE: ${{ github.workspace }}/.OpenEye/oe_license.txt



build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install docker-compose
run: |
sudo apt-get update
sudo apt-get install -y docker-compose
- name: Copy example env file
run: |
cp devtools/deployment/.env.example .env
- name: Make .OpenEye directory
run: |
mkdir -p ${{ github.workspace }}/.OpenEye
- name: Test OE License & Write License to File
env:
OE_LICENSE_TEXT: ${{ secrets.OE_LICENSE }}
run: |
echo "${OE_LICENSE_TEXT}" > ${OE_LICENSE}
python -c "import openeye; assert openeye.oechem.OEChemIsLicensed(), 'OpenEye license checks failed!'"
- name: Build and run containers
run: |
docker-compose -f docker-compose-dev.yml up -d
- name: Run tests
run: |
docker-compose -f docker-compose-dev.yml exec web bash -c " cd argos && /opt/conda/bin/python manage.py test"

0 comments on commit c5a819c

Please sign in to comment.