Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gh actions version #328

Merged
merged 1 commit into from
Dec 13, 2024
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
6 changes: 3 additions & 3 deletions .github/workflows/build-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run:
working-directory: ${{ env.PACKAGE_DIR }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true

Expand All @@ -37,7 +37,7 @@ jobs:
pip3 install build wheel
python3 -m build --wheel --sdist

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: api-release
path: |
Expand All @@ -52,7 +52,7 @@ jobs:
id-token: write
if: startsWith(github.ref, 'refs/tags/api-v')
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: api-release
path: dist
Expand Down
44 changes: 22 additions & 22 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# separate terms of service, privacy policy, and support
# documentation.

name: Build Docs
name: Build Docs

on:
workflow_dispatch:
Expand Down Expand Up @@ -45,29 +45,29 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Install Package to Document
run: python -m pip install ${{ inputs.package_dir }}/
- name: Install Package to Document
run: python -m pip install ${{ inputs.package_dir }}/

- name: Download ffi
run: |
if [[ '${{ inputs.package_name }}' = 'livekit.rtc' ]]; then
pip install requests
python livekit-rtc/rust-sdks/download_ffi.py --output $(python -m site --user-site)/livekit/rtc/resources
fi
- name: Download ffi
run: |
if [[ '${{ inputs.package_name }}' = 'livekit.rtc' ]]; then
pip install requests
python livekit-rtc/rust-sdks/download_ffi.py --output $(python -m site --user-site)/livekit/rtc/resources
fi

- name: Install pdoc
run: pip install --upgrade pdoc
- name: Install pdoc
run: pip install --upgrade pdoc

- name: Build Docs
run: python -m pdoc ${{ inputs.package_name }} --docformat=google --output-dir docs
- name: Build Docs
run: python -m pdoc ${{ inputs.package_name }} --docformat=google --output-dir docs

- name: S3 Upload
run: aws s3 cp docs/ s3://livekit-docs/${{ inputs.package_dir }} --recursive
env:
AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_DEPLOY_AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_DEPLOY_AWS_API_SECRET }}
AWS_DEFAULT_REGION: "us-east-1"
- name: S3 Upload
run: aws s3 cp docs/ s3://livekit-docs/${{ inputs.package_dir }} --recursive
env:
AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_DEPLOY_AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_DEPLOY_AWS_API_SECRET }}
AWS_DEFAULT_REGION: "us-east-1"
8 changes: 4 additions & 4 deletions .github/workflows/build-protocol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run:
working-directory: ${{ env.PACKAGE_DIR }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
ref: ${{ github.event.pull_request.head.ref }}
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
run:
working-directory: ${{ env.PACKAGE_DIR }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true

Expand All @@ -69,7 +69,7 @@ jobs:
pip3 install build wheel
python3 -m build --wheel --sdist

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: protocol-release
path: |
Expand All @@ -84,7 +84,7 @@ jobs:
id-token: write
if: startsWith(github.ref, 'refs/tags/protocol-v')
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: protocol-release
path: dist
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/build-rtc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
run:
working-directory: ${{ env.PACKAGE_DIR }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true

Expand All @@ -85,7 +85,7 @@ jobs:
- name: Install cibuildwheel
if: runner.os != 'macOS'
run: python3 -m pip install cibuildwheel==2.17.0

- name: Install cibuildwheel on macOS
if: runner.os == 'macOS'
run: python3 -m pip install --break-system-packages cibuildwheel==2.17.0
Expand All @@ -95,7 +95,7 @@ jobs:
env:
CIBW_ARCHS: ${{ matrix.archs }}

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: rtc-release
path: livekit-rtc/dist/*.whl
Expand All @@ -107,7 +107,7 @@ jobs:
run:
working-directory: ${{ env.PACKAGE_DIR }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true

Expand All @@ -116,7 +116,7 @@ jobs:
pip3 install build
python3 -m build --sdist

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: rtc-release
path: livekit-rtc/dist/*.tar.gz
Expand All @@ -129,7 +129,7 @@ jobs:
id-token: write
if: startsWith(github.ref, 'refs/tags/rtc-v')
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: rtc-release
path: dist
Expand Down
42 changes: 21 additions & 21 deletions .github/workflows/check-types.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check Types
name: Check Types

on:
push:
Expand All @@ -13,23 +13,23 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Download ffi
run: python -m pip install requests && python livekit-rtc/rust-sdks/download_ffi.py --output $(python -m site --user-site)/livekit/rtc/resources

- name: Install mypy
run: python -m pip install --upgrade mypy

- name: Install packages
run: python -m pip install pytest ./livekit-api ./livekit-protocol ./livekit-rtc

- name: Check Types
run: python -m mypy --install-type --non-interactive -p 'livekit-protocol' -p 'livekit-api' -p 'livekit-rtc'
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Download ffi
run: python -m pip install requests && python livekit-rtc/rust-sdks/download_ffi.py --output $(python -m site --user-site)/livekit/rtc/resources

- name: Install mypy
run: python -m pip install --upgrade mypy

- name: Install packages
run: python -m pip install pytest ./livekit-api ./livekit-protocol ./livekit-rtc

- name: Check Types
run: python -m mypy --install-type --non-interactive -p 'livekit-protocol' -p 'livekit-api' -p 'livekit-rtc'
3 changes: 1 addition & 2 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.9"
Expand All @@ -19,4 +19,3 @@ jobs:

- name: Check format
run: ruff format --check .

2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
lfs: true
Expand Down
Loading