Skip to content

Commit 0815b8f

Browse files
authored
chore: fix CI CLI tests (#945)
1 parent e41327e commit 0815b8f

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.github/workflows/check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ jobs:
192192
fail-fast: false
193193
matrix:
194194
os: [ubuntu-latest, windows-2025]
195-
python-version: ["3.9", "3.10", "3.11", "3.12"]
195+
python-version: ["3.10", "3.11", "3.12", "3.13"]
196196

197197
runs-on: ${{ matrix.os }}
198198

test/local/__fixtures__/commands/run/python/works-with-spaces-in-path-to-actor.test.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { readFile, writeFile } from 'node:fs/promises';
1+
import { readdir, readFile, writeFile } from 'node:fs/promises';
22

33
import { testRunCommand } from '../../../../../../src/lib/command-framework/apify-command.js';
44
import { getLocalKeyValueStorePath } from '../../../../../../src/lib/utils.js';
@@ -16,7 +16,7 @@ async def main():
1616

1717
const { beforeAllCalls, afterAllCalls, joinCwdPath, forceNewCwd } = useTempPath(actorName.replaceAll('-', ' '), {
1818
create: true,
19-
remove: false,
19+
remove: true,
2020
cwd: true,
2121
cwdParent: false,
2222
});
@@ -46,7 +46,15 @@ describe('[python] spaces in path to actor', () => {
4646
it('should work', async () => {
4747
await testRunCommand(RunCommand, {});
4848

49-
const output = await readFile(outputPath, 'utf8');
50-
expect(output).toBe('worked');
49+
try {
50+
const output = await readFile(outputPath, 'utf8');
51+
expect(output).toBe('worked');
52+
} catch (error) {
53+
const filesInStorage = await readdir(joinCwdPath(getLocalKeyValueStorePath()));
54+
55+
(error as any).files = filesInStorage;
56+
57+
expect(error).toBeUndefined();
58+
}
5159
});
5260
});

0 commit comments

Comments
 (0)