Skip to content

Commit 99b6e27

Browse files
committed
Move workflow edits aside for manual restore
1 parent dd3651c commit 99b6e27

4 files changed

Lines changed: 106 additions & 3 deletions

File tree

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
- uses: actions/setup-go@v3
1515
with:
1616
go-version: ">=1.16.0"
17-
- name: Set up Python 3.12
17+
- name: Set up Python 3.11
1818
uses: actions/setup-python@v4
1919
with:
20-
python-version: "3.12"
20+
python-version: "3.11"
2121
- name: Upgrade pip
2222
run: |
2323
python -m pip install --upgrade pip

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
container: trinkle23897/envpool-release:2023-01-02-5f1a5fd
1515
strategy:
1616
matrix:
17-
python-version: ["3.10", "3.11", "3.12", "3.13"]
17+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
1818
steps:
1919
- uses: actions/checkout@v3
2020
- name: Set up Python ${{ matrix.python-version }}

manual_restore/workflows/lint.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Lint
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Cancel previous run
10+
uses: styfle/cancel-workflow-action@0.11.0
11+
with:
12+
access_token: ${{ github.token }}
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-go@v3
15+
with:
16+
go-version: ">=1.16.0"
17+
- name: Set up Python 3.12
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: "3.12"
21+
- name: Upgrade pip
22+
run: |
23+
python -m pip install --upgrade pip
24+
- name: flake8
25+
run: |
26+
make flake8
27+
- name: isort and yapf
28+
run: |
29+
make py-format
30+
- name: cpplint
31+
run: |
32+
make cpplint
33+
- name: clang-format
34+
run: |
35+
make clang-format
36+
- name: buildifier
37+
run: |
38+
make buildifier
39+
- name: addlicense
40+
run: |
41+
make addlicense
42+
- name: mypy
43+
run: |
44+
make mypy
45+
- name: docstyle
46+
run: |
47+
make docstyle
48+
- name: spelling
49+
run: |
50+
make spelling
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Release PyPI Wheel
2+
3+
# on: [push, pull_request]
4+
on:
5+
push:
6+
branches:
7+
- main
8+
tags:
9+
- v*
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
container: trinkle23897/envpool-release:2023-01-02-5f1a5fd
15+
strategy:
16+
matrix:
17+
python-version: ["3.10", "3.11", "3.12", "3.13"]
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Set up Python ${{ matrix.python-version }}
21+
run: |
22+
ln -sf /root/.cache $HOME/.cache
23+
ln -sf /root/.pyenv $HOME/.pyenv
24+
pyenv global ${{ matrix.python-version }}-dev
25+
- name: Build
26+
run: |
27+
make pypi-wheel
28+
pip3 install dist/*.whl --force-reinstall
29+
- name: Test
30+
run: |
31+
make release-test
32+
- name: Upload artifact
33+
uses: actions/upload-artifact@main
34+
with:
35+
name: wheel
36+
path: wheelhouse/
37+
38+
publish:
39+
runs-on: ubuntu-latest
40+
needs: [release]
41+
steps:
42+
- uses: actions/download-artifact@v3
43+
with:
44+
path: artifact
45+
- name: Move files so the next action can find them
46+
run: |
47+
mkdir dist && mv artifact/wheel/* dist/
48+
ls dist/
49+
- name: Publish distribution to PyPI
50+
if: startsWith(github.ref, 'refs/tags')
51+
uses: pypa/gh-action-pypi-publish@release/v1
52+
with:
53+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)