perf: Use 4x faster decimal conversion method across all indicators #72
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Website URLs | |
| on: | |
| pull_request: | |
| branches: ["*"] | |
| paths: | |
| - docs/** | |
| - .github/workflows/test-website-links.yml | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| # Prevent multiple concurrent runs | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: docs | |
| env: | |
| BUNDLE_GEMFILE: ${{ github.workspace }}/docs/Gemfile | |
| BUNDLE_PATH: vendor/bundle | |
| JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v6 | |
| - name: Setup Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 3.3 | |
| bundler-cache: true # runs 'bundle install' and caches gems | |
| - name: Install dependencies | |
| run: | | |
| gem install --user-install html-proofer | |
| echo "$(ruby -e 'puts Gem.user_dir')/bin" >> $GITHUB_PATH | |
| - name: Replace "data-src" | |
| uses: jacobtomlinson/gha-find-replace@v3 | |
| with: | |
| find: "data-src" | |
| replace: "src" | |
| regex: false | |
| - name: Use 'localhost' | |
| uses: jacobtomlinson/gha-find-replace@v3 | |
| with: | |
| find: "https://python.stockindicators.dev" | |
| replace: "http://127.0.0.1:4000" | |
| regex: false | |
| - name: Build site | |
| run: bundle exec jekyll build | |
| - name: Serve site | |
| run: bundle exec jekyll serve --port 4000 --detach | |
| # see help in setup step | |
| - name: Test for broken URLs | |
| run: > | |
| htmlproofer _site | |
| --no-enforce-https | |
| --no-check-external-hash | |
| --ignore-status-codes "0,302,403,406,408,429,503,999" | |
| --ignore-urls "/fonts.gstatic.com/" | |
| - name: Kill site (failsafe) | |
| if: always() | |
| run: pkill -f jekyll |