Skip to content

Commit

Permalink
Tests outsmarting me
Browse files Browse the repository at this point in the history
  • Loading branch information
AnHeuermann committed Mar 5, 2024
1 parent 9035ca4 commit 26fea5f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,15 @@ jobs:
- name: Install Python packages (Windows only)
if: ${{ matrix.os }} == 'windows-latest'
run: |
pip install --user datetime matplotlib monotonic natsort joblib ompython simplejson psutil
pip install --user \
datetime \
matplotlib \
monotonic \
natsort \
joblib \
ompython \
simplejson \
psutil
- name: Cache pip dependencies
uses: actions/cache@v4
Expand Down
3 changes: 2 additions & 1 deletion __tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import * as os from 'os'
import * as path from 'path'
import * as core from '@actions/core'
import * as main from '../src/main'
import { getMSYS } from '../src/get-msys'

// Some expected string
const mdCoverageTable = `| Total | Frontend | Backend | SimCode | Templates | Compilation | Simulation | Verification |
Expand Down Expand Up @@ -112,7 +113,7 @@ describe('action', () => {
expect(debugMock).toHaveBeenNthCalledWith(
5,
'Running python test.py --verbose --branch=master --noclean' +
` ${os.platform() === 'win32' ? '--msysEnvironment=ucrt64' : ''}` +
` ${os.platform() === 'win32' ? `--msysEnvironment=${getMSYS()}` : ''}` +
` ${path.join('configs', 'conf-MyLibrary.json')}`
)
expect(debugMock).toHaveBeenNthCalledWith(
Expand Down

0 comments on commit 26fea5f

Please sign in to comment.