Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/pr_changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
name: Check changelog fragment
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Check for changelog fragment
run: |
FRAGMENTS=$(find changelog.d -type f ! -name '.gitkeep' | wc -l)
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Set up Python 3.13
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: 3.13

- name: Install uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v8.1.0

- name: Install dependencies
run: |
Expand All @@ -34,7 +34,7 @@ jobs:

# Codecov upload commented out - requires token setup
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v4
# uses: codecov/codecov-action@v6
# with:
# file: ./coverage.xml
# fail_ci_if_error: false
Expand All @@ -56,10 +56,10 @@ jobs:
needs: test

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: "3.13"

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/reusable_lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Set up Python 3.13
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Install uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v8.1.0
- name: Check formatting with ruff
run: uvx ruff format --check .
8 changes: 4 additions & 4 deletions .github/workflows/reusable_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Set up Python 3.13
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: 3.13

- name: Install uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v8.1.0

- name: Install dependencies
run: |
Expand All @@ -27,7 +27,7 @@ jobs:

# Codecov upload commented out - requires token setup
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v4
# uses: codecov/codecov-action@v6
# with:
# file: ./coverage.xml
# fail_ci_if_error: false
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/versioning.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ jobs:
steps:
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@v1
uses: actions/create-github-app-token@v3
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Checkout repo
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
token: ${{ steps.app-token.outputs.token }}
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: 3.13
- name: Install towncrier
Expand All @@ -37,7 +37,7 @@ jobs:
python .github/bump_version.py
towncrier build --yes --version $(python -c "import re; print(re.search(r'version = \"(.+?)\"', open('pyproject.toml').read()).group(1))")
- name: Update changelog
uses: EndBug/add-and-commit@v9
uses: EndBug/add-and-commit@v10
with:
add: "."
message: Update package version
Expand Down
3 changes: 1 addition & 2 deletions tests/test_distributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,7 @@ def test_deterministic_gates_match_reference_formula(self):
deterministic = gate()

expected = torch.clamp(
torch.sigmoid(gate.qz_logits / gate.temperature)
* (gate.zeta - gate.gamma)
torch.sigmoid(gate.qz_logits / gate.temperature) * (gate.zeta - gate.gamma)
+ gate.gamma,
0,
1,
Expand Down