Skip to content

Commit 8a097f0

Browse files
authored
Add AWS Tags (#766)
* remove openeye license check from GPU test * Update to newest version of gha runner action * Add requird tags * fix yaml syntax * fix format * fix botocore.exceptions.ClientError: An error occurred (TagPolicyViolation) when calling the RunInstances operation: For 'cost-center', use the capitalization specified by the tag policy. * fix botocore.exceptions.ClientError: An error occurred (TagPolicyViolation) when calling the RunInstances operation: For 'env', use the capitalization specified by the tag policy. * fix botocore.exceptions.ClientError: An error occurred (TagPolicyViolation) when calling the RunInstances operation: For 'owner-email', use the capitalization specified by the tag policy.
1 parent 9043f8a commit 8a097f0

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

.github/workflows/gpu-runner.yaml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,22 @@ jobs:
1818
aws-region: us-east-1
1919
- name: Create cloud runner
2020
id: aws-start
21-
uses: omsf-eco-infra/gha-runner@v0.2.0
21+
uses: omsf-eco-infra/gha-runner@v0.4.0
2222
with:
2323
provider: "aws"
2424
action: "start"
2525
aws_image_id: ami-053912f3a44543f8c
2626
aws_instance_type: g4dn.xlarge
2727
aws_region_name: us-east-1
2828
aws_home_dir: /home/ubuntu
29+
aws_tags: >
30+
[
31+
{"Key": "Application", "Value": "chodera-lab"},
32+
{"Key": "Application-ID (APM)", "Value": "APM0003545"},
33+
{"Key": "cost-center", "Value": "50612"},
34+
{"Key": "owner-email", "Value": "choderaj@mskcc.org"},
35+
{"Key": "env", "Value": "research"}
36+
]
2937
env:
3038
GH_PAT: ${{ secrets.GH_PAT }}
3139

@@ -35,8 +43,6 @@ jobs:
3543
defaults:
3644
run:
3745
shell: bash -leo pipefail {0}
38-
env:
39-
OE_LICENSE: ${{ github.workspace }}/oe_license.txt
4046

4147
needs:
4248
- start-aws-runner
@@ -70,13 +76,6 @@ jobs:
7076
micromamba list
7177
pip list
7278
73-
- name: Test OE License & Write License to File
74-
env:
75-
OE_LICENSE_TEXT: ${{ secrets.OE_LICENSE }}
76-
run: |
77-
echo "${OE_LICENSE_TEXT}" > ${OE_LICENSE}
78-
python -c "import openeye; assert openeye.oechem.OEChemIsLicensed(), 'OpenEye license checks failed!'"
79-
8079
- name: "Run tests"
8180
run: |
8281
pytest -n 4 -v --durations=10 --cov=openmmtools --cov-report=term
@@ -97,7 +96,7 @@ jobs:
9796
role-to-assume: arn:aws:iam::009563297724:role/gha-runner-omsf
9897
aws-region: us-east-1
9998
- name: Stop instances
100-
uses: omsf-eco-infra/gha-runner@v0.2.0
99+
uses: omsf-eco-infra/gha-runner@v0.4.0
101100
with:
102101
provider: "aws"
103102
action: "stop"

0 commit comments

Comments
 (0)