Skip to content

update to speedup pyenv-virtualenv prompt #623

update to speedup pyenv-virtualenv prompt

update to speedup pyenv-virtualenv prompt #623

Workflow file for this run

name: MacOS
on:
push:
branches: [master]
paths-ignore:
- "README.md"
- "Makefile"
- "Dockerfile"
- "install/ubuntu/**"
- ".chezmoiscripts/ubuntu/**"
- "dot_tmux.conf.d/os/ubuntu.conf"
- "tests/install/ubuntu/**"
pull_request:
branches: [master]
paths-ignore:
- "README.md"
- "Makefile"
- "Dockerfile"
- "install/ubuntu/**"
- ".chezmoiscripts/ubuntu/**"
- "dot_tmux.conf.d/os/ubuntu.conf"
- "tests/install/ubuntu/**"
jobs:
build:
runs-on: macos-14 # M1 Mac
steps:
- name: Setup dotfiles
env:
EMAIL_ADDRESS: ${{ secrets.EMAIL_ADDRESS }}
DOTFILES_DEBUG: 1
EVENT_NAME: ${{ github.event_name }}
run: |
if [ "${EVENT_NAME}" == "push" ]; then
BRANCH_NAME="${{ github.ref_name }}"
elif [ "${EVENT_NAME}" == "pull_request" ]; then
BRANCH_NAME="${{ github.head_ref }}"
fi
export BRANCH_NAME
URL="https://raw.githubusercontent.com/shunk031/dotfiles/${BRANCH_NAME}/setup.sh"
echo "Download setup.sh from ${URL}"
printf '${EMAIL_ADDRESS}\n' | bash -c "$(curl -fsLS $URL)"
# │
# └─ Simulate inputting an email address into the chezmoi's config.
- name: Unset gpg
run: |
git config --global commit.gpgsign false
- name: Run benchmark
run: |
brew install gnu-time
$(chezmoi source-path)/../scripts/run_benchmark.sh > result.json
- name: Dump result.json
run: cat result.json
- name: Set flag for auto-push in the benchmark action
run: |
if [ "${{ github.event_name }}" = "push" ] && [ "${{ github.ref }}" = "refs/heads/master" ]; then
echo "auto_push=true" >> $GITHUB_ENV
else
echo "auto_push=false" >> $GITHUB_ENV
fi
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
name: MacOS benchmark
tool: customSmallerIsBetter
output-file-path: result.json
github-token: ${{ secrets.MY_DOTFILES_BENCHMARK }}
gh-repository: "github.com/shunk031/my-dotfiles-benchmarks"
auto-push: ${{ env.auto_push }}
comment-on-alert: true
fail-on-alert: true
alert-threshold: "150%"
alert-comment-cc-users: "@shunk031"
benchmark-data-dir-path: "."
- name: Test file existence
run: |
brew install bats-core
cd $(chezmoi source-path)/../
bats --print-output-on-failure \
tests/files/common.bats \
tests/files/macos.bats