Skip to content

refactor: vectorize explicit stencils, extract shared latent heat in … #117

refactor: vectorize explicit stencils, extract shared latent heat in …

refactor: vectorize explicit stencils, extract shared latent heat in … #117

Workflow file for this run

name: Heatrapy application
on:
push:
branches:
- master
- develop
pull_request:
types: [opened, synchronize, reopened]
jobs:
test:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Check if targeting master
if: github.event.pull_request.base.ref == 'master'
run: echo "Pull request is targeting 'master'. Changing base to 'develop'..."
- name: Change the pull request base to develop
if: github.event.pull_request.base.ref == 'master'
run: |
curl -X PATCH \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }} \
-d '{"base": "develop"}'
- uses: actions/checkout@v4
- name: Set up Python 3.14
uses: actions/setup-python@v3
with:
python-version: "3.14"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with ruff
run: |
ruff check
- name: Test with pytest
run: |
pytest
- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}