feat: add support for high resolution image rendering #79
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: CI/CD | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - 'v*' | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Lint | |
| run: make lint | |
| - name: Test | |
| run: make test | |
| - name: Build | |
| run: make build | |
| - name: Upload build artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: build-dist | |
| path: dist/ | |
| deploy: | |
| if: ${{ startsWith(github.ref, 'refs/tags/') && success() }} | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: pypi | |
| permissions: | |
| contents: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Download artifact from CI | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: build-dist | |
| path: dist/ | |
| - name: List contents | |
| run: ls -la dist/ | |
| - name: Upload to PyPi | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| - name: Upload to GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: dist/* | |
| homebrew: | |
| needs: deploy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Release project to Homebrew tap | |
| uses: Justintime50/homebrew-releaser@v2 | |
| with: | |
| homebrew_owner: akopdev | |
| homebrew_tap: homebrew-formulas | |
| github_token: ${{ secrets.HOMEBREW_TAP_TOKEN }} | |
| install: 'virtualenv_install_with_resources' | |
| test: 'assert_match version.to_s, shell_output("#{bin}/nbcat --version")' | |
| commit_owner: akopdev | |
| commit_email: devnull@akop.dev | |
| update_readme_table: true | |
| formula_includes: 'include Language::Python::Virtualenv' | |
| depends_on: | | |
| "python@3.13" | |
| "pillow" |