Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/joss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ jobs:
name: Paper Draft
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7
- name: Build draft PDF
uses: openjournals/openjournals-draft-action@master
with:
journal: joss
paper-path: joss-paper/paper.md
- name: Upload
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: paper
path: joss-paper/paper.pdf
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
- uses: actions/setup-node@v7
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
- name: Build CLI package
run: yarn build

- name: Build docs
run: yarn docs

- name: Run Vitest
run: yarn test
env:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/typedoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
- run: yarn install --frozen-lockfile
# Generate your TypeDoc documentation
- run: yarn docs
# https://github.com/actions/upload-pages-artifact
- uses: actions/upload-pages-artifact@v3
- uses: actions/upload-pages-artifact@v5
with:
path: ./docs # This should be your TypeDoc "out" path.

Expand All @@ -34,4 +34,4 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
# https://github.com/actions/deploy-pages
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v5
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ For each version important additions, changes and removals are listed here.
The format is inspired from [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and the versioning aims to respect [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## v0.2.4 - 2026-09-25

### Changes

- Update github action versions by @FlorianK13 in https://github.com/open-pv/simshady/pull/136

## v0.2.3 - 2026-09-25

### Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openpv/simshady",
"version": "0.2.3",
"version": "0.2.4",
"description": "Simulating Shadows for PV Potential Analysis on 3D Data on the GPU.",
"main": "./dist/index.js",
"type": "module",
Expand Down
51 changes: 23 additions & 28 deletions tests/headless/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,29 @@ describe('CLI integration test', () => {
fs.rmSync(tempDir, { recursive: true, force: true });
});

test(
'run CLI as subprocess',
{ timeout: 50000 },
() => {
// Change working directory to base simshady directory
process.chdir(path.join(__dirname, '../..'));
test('run CLI as subprocess', { timeout: 50000 }, () => {
// Change working directory to base simshady directory
process.chdir(path.join(__dirname, '../..'));

// CLI needs to be built in order to test properly
const cliExists = fs.existsSync(path.join(__dirname, '/dist/cli.cjs'));
if (!cliExists) {
execSync('npm run build');
}
try {
execSync(
`node dist/cli.cjs run ` +
`--simulation-geometry ${path.join(__dirname, 'data/building.obj')} ` +
`--irradiance-data ${path.join(__dirname, 'data/irradiance.json')} ` +
`--output-dir ${tempDir} ` +
`--silent`,
);
// CLI needs to be built in order to test properly
const cliExists = fs.existsSync(path.join(__dirname, '/dist/cli.cjs'));
if (!cliExists) {
execSync('npm run build');
}
try {
execSync(
`node dist/cli.cjs run ` +
`--simulation-geometry ${path.join(__dirname, 'data/building.obj')} ` +
`--irradiance-data ${path.join(__dirname, 'data/irradiance.json')} ` +
`--output-dir ${tempDir} ` +
`--silent`,
);

// Check the output
expect(fs.existsSync(tempDir)).toBe(true);
} catch (error: any) {
console.error('CLI execution failed:', error.stdout, error.stderr);
throw error;
}
},
30000,
);
// Check the output
expect(fs.existsSync(tempDir)).toBe(true);
} catch (error: any) {
console.error('CLI execution failed:', error.stdout, error.stderr);
throw error;
}
});
});
Loading