Skip to content

Commit

Permalink
no credentials on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tathey1 committed Feb 6, 2023
1 parent ae46448 commit 9dc92c1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
8 changes: 3 additions & 5 deletions .aws.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ mkdir -p ~/.cloudvolume/secrets

cat > ~/.cloudvolume/secrets/aws-secret.json << EOL
{
"AWS_ACCESS_KEY_ID": "$1",
"AWS_SECRET_ACCESS_KEY": "$2"
"AWS_ACCESS_KEY_ID": "${AWS_KEY}",
"AWS_SECRET_ACCESS_KEY": "${AWS_SEC_KEY}"
}
EOL

cat ~/.cloudvolume/secrets/aws-secret.json | cat
EOL
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ commands:
command: |
. venv/bin/activate
black --check --diff ./brainlit ./experiments
pytest brainlit/algorithms/ brainlit/feature_extraction/ brainlit/napari_viterbrain/ brainlit/preprocessing/ brainlit/viz/
pytest brainlit/algorithms/ brainlit/feature_extraction/ brainlit/lsm_analysis brainlit/napari_viterbrain/ brainlit/preprocessing/ brainlit/viz/
all_test:
steps:
- run:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
black .
- name: Setup AWS credentials
run: |
bash ./.aws.sh ${{ secrets.AWS_KEY}} ${{ secrets.AWS_SEC_KEY}}
# bash ./.aws.sh # couldn't figure out how to get this to work
shell: bash
- name: Test with pytest
- name: Test with pytest without credentials
run: |
pytest ./brainlit
pytest brainlit/algorithms/ brainlit/feature_extraction/ brainlit/lsm_analysis brainlit/napari_viterbrain/ brainlit/preprocessing/ brainlit/viz/

0 comments on commit 9dc92c1

Please sign in to comment.