Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 5 additions & 12 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,14 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install Poetry
uses: snok/install-poetry@v1.2.1
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
virtualenvs-in-project: true
- name: Setup cache
id: cached-poetry-dependencies
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
enable-cache: true
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install
run: uv sync
- name: Build and deploy documentation
run: |
git config --global user.name "github-actions"
git config --global user.email "action@github.com"
poetry run mudkip build --check --update-gh-pages --repository https://x-access-token:${GH_TOKEN}@github.com/rx-modules/bolt-expressions
uv run mudkip build --check --update-gh-pages --repository https://x-access-token:${GH_TOKEN}@github.com/rx-modules/bolt-expressions
40 changes: 19 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,32 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install Poetry
uses: snok/install-poetry@v1.2.1
uses: actions/setup-python@v6
with:
virtualenvs-in-project: true
- name: Install Pyright
run: npm install
- name: Setup cache
id: cached-poetry-dependencies
uses: actions/cache@v2
python-version: "3.12"

- name: Install uv
uses: astral-sh/setup-uv@v7
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
enable-cache: true

- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install
run: uv sync

- name: Run tests
run: poetry run pytest -v
# - name: Run type-checking
# run: npm run check
run: uv run pytest -v

- name: Check formatting
run: poetry run black --check bolt_expressions examples tests
run: uv run ruff format --check src/bolt_expressions examples tests

- name: Check imports
run: uv run ruff check --select I src/bolt_expressions examples tests

- name: Release
if: |
github.repository == 'rx-modules/bolt-expressions'
Expand All @@ -51,4 +49,4 @@ jobs:
run: |
git config --global user.name "github-actions"
git config --global user.email "action@github.com"
poetry run semantic-release publish -v DEBUG -D commit_author="github-actions <action@github.com>"
uv run semantic-release publish -v DEBUG -D commit_author="github-actions <action@github.com>"
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12
9 changes: 0 additions & 9 deletions package.json

This file was deleted.

Loading