Skip to content

Commit

Permalink
Merge branch 'main' into incrementality
Browse files Browse the repository at this point in the history
  • Loading branch information
drbenvincent committed Nov 19, 2024
2 parents e64626f + 3e7523d commit 2a67bc9
Show file tree
Hide file tree
Showing 23 changed files with 4,731 additions and 4,003 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist
Expand All @@ -79,7 +79,7 @@ jobs:
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/slow-tests-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Slow Tests Issue Body

on:
workflow_dispatch:
schedule:
- cron: '0 */6 * * *'

permissions:
issues: write

jobs:
update-comment:
runs-on: ubuntu-latest
steps:
- name: Install ZSH
run: sudo apt-get update && sudo apt-get install -y zsh
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Trigger the script
working-directory: scripts/slowest_tests
shell: zsh {0}
run: source update-slowest-times-issue.sh
env:
GITHUB_TOKEN: ${{ github.token }}
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
if: ${{ matrix.config.oldest-pymc }}
run: python -c "import pymc; assert pymc.__version__ == '${{ env.OLDEST_PYMC_VERSION }}'"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }} # use token for more robust uploads
name: ${{ matrix.config.python-version }}
Expand All @@ -61,7 +61,7 @@ jobs:
pip install -e .[test]
pytest --only-slow
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }} # use token for more robust uploads
name: "test_slow"
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/test_notebook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@ on:
pull_request:
branches: [main]
paths:
- '**.py'
- '**.ipynb'
- "pyproject.toml"
- "tests/**.py"
- "pymc_marketing/**"
- "docs/source/notebooks/**.ipynb"
- "!docs/source/notebooks/*/dev/**.ipynb"
push:
branches: [main]
paths:
- '**.py'
- '**.ipynb'
- "pyproject.toml"
- "tests/**.py"
- "pymc_marketing/**"
- "docs/source/notebooks/**.ipynb"
- "!docs/source/notebooks/*/dev/**.ipynb"

jobs:
example_notebooks:
Expand Down
31 changes: 21 additions & 10 deletions .github/workflows/uml.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Update the UML Diagrams

on:
pull_request_target:
types: [closed]
branches: [main]
paths:
- "pymc_marketing/**"
workflow_dispatch:
schedule:
- cron: '0 12 * * 1'

jobs:
build:
Expand Down Expand Up @@ -33,15 +31,28 @@ jobs:
sudo apt-get update && sudo apt-get install -y graphviz
make uml
- name: Push up the changes
- name: Detect UML changes
run: |
git add docs/source/uml/*.png
if git diff --staged --exit-code; then
echo "No changes to commit"
echo "changes_exist=false" >> $GITHUB_OUTPUT
else
echo "Committing the changes"
git commit -m "Update UML Diagrams"
git push origin HEAD:${{ github.event.pull_request.base.ref }}
echo "changes_exist=true" >> $GITHUB_ENV
fi
- name: Create PR for changes
if: steps.detect_changes.outputs.changes_exist == "true"
run: |
git checkout -b update-uml-diagrams
git commit -m "Update UML Diagrams"
gh pr create \
--base main \
--head update-uml-diagrams \
--title "Update UML Diagrams" \
--body "This PR updates the UML Diagrams" \
--label "no releasenotes" \
--reviewer wd60622 \
--reviewer juanitorduz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ github.token }}
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repos:
- --exclude=docs/
- --exclude=scripts/
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.1
rev: v0.7.4
hooks:
- id: ruff
types_or: [python, pyi, jupyter]
Expand Down
3,534 changes: 1,822 additions & 1,712 deletions docs/source/guide/benefits/model_deployment.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 2a67bc9

Please sign in to comment.