Skip to content
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

Add AWS Tags #766

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
21 changes: 10 additions & 11 deletions .github/workflows/gpu-runner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,22 @@ jobs:
aws-region: us-east-1
- name: Create cloud runner
id: aws-start
uses: omsf-eco-infra/gha-runner@v0.2.0
uses: omsf-eco-infra/gha-runner@v0.4.0
with:
provider: "aws"
action: "start"
aws_image_id: ami-053912f3a44543f8c
aws_instance_type: g4dn.xlarge
aws_region_name: us-east-1
aws_home_dir: /home/ubuntu
aws_tags: >
[
{"Key": "Application", "Value": "chodera-lab"},
{"Key": "Application-ID (APM)", "Value": "APM0003545"},
{"Key": "cost-center", "Value": "50612"},
{"Key": "owner-email", "Value": "[email protected]"},
{"Key": "env", "Value": "research"}
]
env:
GH_PAT: ${{ secrets.GH_PAT }}

Expand All @@ -35,8 +43,6 @@ jobs:
defaults:
run:
shell: bash -leo pipefail {0}
env:
OE_LICENSE: ${{ github.workspace }}/oe_license.txt

needs:
- start-aws-runner
Expand Down Expand Up @@ -70,13 +76,6 @@ jobs:
micromamba list
pip list

- 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: "Run tests"
run: |
pytest -n 4 -v --durations=10 --cov=openmmtools --cov-report=term
Expand All @@ -97,7 +96,7 @@ jobs:
role-to-assume: arn:aws:iam::009563297724:role/gha-runner-omsf
aws-region: us-east-1
- name: Stop instances
uses: omsf-eco-infra/gha-runner@v0.2.0
uses: omsf-eco-infra/gha-runner@v0.4.0
with:
provider: "aws"
action: "stop"
Expand Down
Loading