Skip to content

Commit 1b49a81

Browse files
authored
Merge pull request #7 from prescient-design/pypi
pypi
2 parents 1d2a836 + 7efaf8d commit 1b49a81

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

.github/workflows/push.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
on: "push"
2+
13
jobs:
24
build:
35
runs-on: "ubuntu-latest"
@@ -103,4 +105,3 @@ jobs:
103105
repository-url: "https://test.pypi.org/legacy/"
104106
skip-existing: true
105107
verbose: true
106-
on: "push"

.github/workflows/tag.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: tag
2+
on:
3+
push:
4+
tags:
5+
- 'v[0-9]+.[0-9]+.[0-9]+'
6+
7+
jobs:
8+
pypi:
9+
environment:
10+
name: "test.pypi.org"
11+
url: "https://test.pypi.org/project/lbster"
12+
needs:
13+
- "build"
14+
permissions:
15+
id-token: "write"
16+
runs-on: "ubuntu-latest"
17+
steps:
18+
- uses: "actions/download-artifact@v4"
19+
with:
20+
name: "python-package-distributions"
21+
path: "dist/"
22+
- uses: "pypa/gh-action-pypi-publish@release/v1"
23+
with:
24+
user: __token__
25+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
26+
repository-url: "https://test.pypi.org/legacy/"
27+
skip-existing: true
28+
verbose: true

tests/lobster/model/test__lobsterfold.py

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ def structure_featurizer(scope="session"):
2828

2929
@pytest.fixture
3030
def model(max_length, scope="session"):
31+
if os.getenv("CI"):
32+
pytest.skip("large download")
3133
return LobsterPLMFold(model_name="esmfold_v1", max_length=max_length)
3234

3335

0 commit comments

Comments
 (0)