Skip to content

Conversation

@ehennestad
Copy link
Owner

@ehennestad ehennestad commented Jun 23, 2025

Useful when installing requirements from GitHub (i.e GitHub repos), as the GitHub public api has a low rate-limit and MatBox will make multiple api calls per repo.

Example step passing GITHUB_TOKEN as env to MATLAB:

    - name: Install Toolbox Dependencies
      uses: matlab-actions/run-command@v2
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      with:
        command: |
          try
              matbox.installRequirements(pwd, "AgreeToLicenses", true)
              savepath()
          catch ME
              fprintf('Error installing Toolbox dependencies: %s\n', ME.message);
              rethrow(ME);
          end

@github-actions
Copy link
Contributor

github-actions bot commented Jun 23, 2025

Test Results

21 tests   21 ✅  16s ⏱️
 5 suites   0 💤
 1 files     0 ❌

Results for commit 73234b4.

♻️ This comment has been updated with latest results.

@codecov
Copy link

codecov bot commented Jun 23, 2025

Codecov Report

Attention: Patch coverage is 36.36364% with 21 lines in your changes missing coverage. Please review.

Project coverage is 42.75%. Comparing base (b323a59) to head (73234b4).
Report is 36 commits behind head on main.

Files with missing lines Patch % Lines
.../+setup/+internal/+github/+api/getLicenseHtmlUrl.m 0.00% 8 Missing ⚠️
...+setup/+internal/+github/+api/getCurrentCommitID.m 50.00% 4 Missing ⚠️
...setup/+internal/+github/+api/getGithubWebOptions.m 66.66% 3 Missing ⚠️
...nternal/+github/+api/getOrganizationRepositories.m 0.00% 3 Missing ⚠️
...matbox/+setup/+internal/downloadZippedGithubRepo.m 40.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #34      +/-   ##
==========================================
+ Coverage   41.11%   42.75%   +1.63%     
==========================================
  Files          53       58       +5     
  Lines        1182     1394     +212     
==========================================
+ Hits          486      596     +110     
- Misses        696      798     +102     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ehennestad ehennestad marked this pull request as ready for review June 23, 2025 20:29
@ehennestad ehennestad merged commit c6b4b13 into main Jun 23, 2025
6 checks passed
@ehennestad ehennestad deleted the support-github-token-via-env branch July 1, 2025 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants