-
Notifications
You must be signed in to change notification settings - Fork 14
Merging with main #141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merging with main #141
Conversation
Fix and handle tabs in yaml files
update the ci to test python 3.13
IO of open foam files in python
Centralize postprocess
Add flat panel reactor tutorial and add it to the ci
Robustify post process
Fix compute fitted kla
…ead from phaseProperties
Fall cleanup
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| shell: bash -l {0} | ||
| working-directory: ${{github.workspace}} | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: '3.13' | ||
| cache: 'pip' | ||
|
|
||
| - name: Set up micromamba | ||
| uses: mamba-org/setup-micromamba@v1 | ||
| with: | ||
| environment-name: test-env | ||
| create-args: >- | ||
| python=${{ matrix.python-version }} | ||
| channels: conda-forge | ||
| channel-priority: strict | ||
| cache-downloads: true | ||
| cache-env: true | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| micromamba install --yes -n test-env -c conda-forge paraview | ||
| pip install --upgrade pip | ||
| pip install pytest | ||
| pip install pytest-cov | ||
| pip install -e . | ||
|
|
||
| - name: Generate coverage report | ||
| run: | | ||
| pytest --cov=./ --cov-report=xml:coverage.xml | ||
| - name: Upload coverage to Codecov | ||
|
|
||
| uses: codecov/codecov-action@v5 | ||
| with: | ||
| token: ${{ secrets.CODECOV_TOKEN }} | ||
| file: ./coverage.xml | ||
| flags: unittests | ||
| env_vars: OS,PYTHON | ||
| name: codecov-umbrella | ||
| fail_ci_if_error: false | ||
| verbose: true |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 3 months ago
To address this CodeQL warning, we should add an explicit permissions block in the workflow file. Since none of the workflow steps write to the repository or require elevated privileges, the minimum required permission for GITHUB_TOKEN is contents: read. The best way to fix the problem is to add the following under the workflow's top-level keys, immediately after name: CodeCov and before on:. This will apply contents: read permissions to all jobs in the workflow unless a more specific permissions block is later added.
-
Copy modified lines R2-R3
| @@ -1,4 +1,6 @@ | ||
| name: CodeCov | ||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| push: |
No description provided.