Skip to content

Commit

Permalink
Fix dev tests
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettmflynn committed May 29, 2024
1 parent 3ec5164 commit aee6993
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 20 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy_tests_on_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
uses: ./.github/workflows/testing_dev_with_live_services.yml
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
DANDI_STAGING_API_KEY: ${{ secrets.DANDI_STAGING_API_KEY }}

Build:
uses: ./.github/workflows/testing_flask_build_and_dist.yml
Expand Down
24 changes: 4 additions & 20 deletions .github/workflows/testing_dev_with_live_services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,33 +70,17 @@ jobs:
- name: Install GUIDE
run: npm ci --verbose

- name: Create environment file
run: echo DANDI_STAGING_API_KEY=${{ secrets.DANDI_STAGING_API_KEY }} >> .env
if: runner.os != 'Windows'

- name: Create environment file (Windows)
run: echo DANDI_STAGING_API_KEY=${{ secrets.DANDI_STAGING_API_KEY }} >> .env
shell: bash
if: runner.os == 'Windows'

# Display environment file for debugging
- name: Print environment file
run: cat .env
if: runner.os != 'Windows'

- name: Print environment file
run: type .env
shell: bash
if: runner.os == 'Windows'
- name: Create env file
run: |
touch .env
echo DANDI_STAGING_API_KEY=${{ secrets.DANDI_STAGING_API_KEY }} >> .env
- if: matrix.os != 'ubuntu-latest'
name: Run tests
shell: bash
run: npm run coverage:app

- if: matrix.os == 'ubuntu-latest'
name: Run tests with xvfb
shell: bash
run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run coverage:app

- name: Upload coverage reports to Codecov
Expand Down

0 comments on commit aee6993

Please sign in to comment.