Skip to content

Commit 9a84ba2

Browse files
talgalilifacebook-github-bot
authored andcommitted
update release.yml to remove python 3.8 and add python 3.11
Summary: This is needed since we can't upload 0.10.0 to pypi until this is resolved. See: https://github.com/facebookresearch/balance/actions/runs/12632807484/job/35197182173#step:4:138 I also took inspiration from this: https://github.com/pytorch/botorch/blob/main/.github/workflows/deploy_on_release.yml See also: https://github.com/actions/checkout/releases (v4) https://github.com/actions/setup-python/releases (v5) Differential Revision: D67859248 fbshipit-source-id: 1bad1fa8ca5f4cfa241bf3906880532adbcb4707
1 parent 666325d commit 9a84ba2

File tree

1 file changed

+25
-27
lines changed

1 file changed

+25
-27
lines changed

.github/workflows/release.yml

+25-27
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# This workflows will upload a Python Package using Twine when a release is published
2-
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
1+
# This workflow uploads a Python Package using Twine when a release is published.
2+
# For more information, see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
33

44
name: Deploy
55

@@ -12,19 +12,17 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: ['3.8', '3.9', '3.10'] # , '3.11']
15+
python-version: ['3.9', '3.10', '3.11']
1616
fail-fast: false
1717
steps:
1818
- name: Checkout
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v4
2020
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v2
21+
uses: actions/setup-python@v5
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424
- name: Install Pkg + Dependencies
2525
run: |
26-
sudo apt-get install -y libopenblas-dev
27-
python -m pip install git+https://github.com/bbalasub1/[email protected]
2826
python -m pip install .[dev]
2927
- name: Test with pytest
3028
run: |
@@ -37,23 +35,23 @@ jobs:
3735
needs: tests # only run if previous step succeeds
3836
runs-on: ubuntu-latest
3937
steps:
40-
- uses: actions/checkout@v2
41-
- name: Set up Python
42-
uses: actions/setup-python@v2
43-
with:
44-
python-version: "3.8"
45-
- name: Install Pkg + Dependencies
46-
run: |
47-
python -m pip install git+https://github.com/bbalasub1/[email protected]
48-
python -m pip install .[dev]
49-
- name: Fetch all history for all tags and branches
50-
run: git fetch --prune --unshallow
51-
- name: Build wheels pkg
52-
run: |
53-
python setup.py sdist bdist_wheel
54-
- name: Publish a Python distribution to PyPI
55-
uses: pypa/gh-action-pypi-publish@release/v1
56-
with:
57-
user: __token__
58-
password: ${{ secrets.PYPI_API_TOKEN }}
59-
verbose: true
38+
- name: Checkout
39+
uses: actions/checkout@v4
40+
- name: Set up Python
41+
uses: actions/setup-python@v5
42+
with:
43+
python-version: "3.10"
44+
- name: Install Pkg + Dependencies
45+
run: |
46+
python -m pip install .[dev]
47+
- name: Fetch all history for all tags and branches
48+
run: git fetch --prune --unshallow
49+
- name: Build wheels pkg
50+
run: |
51+
python setup.py sdist bdist_wheel
52+
- name: Publish a Python distribution to PyPI
53+
uses: pypa/gh-action-pypi-publish@release/v1
54+
with:
55+
user: __token__
56+
password: ${{ secrets.PYPI_API_TOKEN }}
57+
verbose: true

0 commit comments

Comments
 (0)