From 6aa4d58dce1bfde7fadc171f7058c9a268ccd77f Mon Sep 17 00:00:00 2001 From: lukasIO Date: Fri, 13 Dec 2024 15:02:54 +0100 Subject: [PATCH] Update gh actions version (#328) --- .github/workflows/build-api.yml | 6 ++-- .github/workflows/build-docs.yml | 44 ++++++++++++++-------------- .github/workflows/build-protocol.yml | 8 ++--- .github/workflows/build-rtc.yml | 12 ++++---- .github/workflows/check-types.yml | 42 +++++++++++++------------- .github/workflows/ruff.yml | 3 +- .github/workflows/tests.yml | 2 +- 7 files changed, 58 insertions(+), 59 deletions(-) diff --git a/.github/workflows/build-api.yml b/.github/workflows/build-api.yml index 5f47f74d..941c2bee 100644 --- a/.github/workflows/build-api.yml +++ b/.github/workflows/build-api.yml @@ -26,7 +26,7 @@ jobs: run: working-directory: ${{ env.PACKAGE_DIR }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true @@ -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: | @@ -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 diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 99bd94ec..9f1ab20c 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -6,7 +6,7 @@ # separate terms of service, privacy policy, and support # documentation. -name: Build Docs +name: Build Docs on: workflow_dispatch: @@ -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" \ No newline at end of file + - 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" diff --git a/.github/workflows/build-protocol.yml b/.github/workflows/build-protocol.yml index 1730eca2..4be795cc 100644 --- a/.github/workflows/build-protocol.yml +++ b/.github/workflows/build-protocol.yml @@ -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 }} @@ -58,7 +58,7 @@ jobs: run: working-directory: ${{ env.PACKAGE_DIR }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true @@ -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: | @@ -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 diff --git a/.github/workflows/build-rtc.yml b/.github/workflows/build-rtc.yml index 2e017edb..5996e42b 100644 --- a/.github/workflows/build-rtc.yml +++ b/.github/workflows/build-rtc.yml @@ -76,7 +76,7 @@ jobs: run: working-directory: ${{ env.PACKAGE_DIR }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true @@ -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 @@ -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 @@ -107,7 +107,7 @@ jobs: run: working-directory: ${{ env.PACKAGE_DIR }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true @@ -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 @@ -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 diff --git a/.github/workflows/check-types.yml b/.github/workflows/check-types.yml index c4d4c3de..f8754189 100644 --- a/.github/workflows/check-types.yml +++ b/.github/workflows/check-types.yml @@ -1,4 +1,4 @@ -name: Check Types +name: Check Types on: push: @@ -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' diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index 06514b44..8ac5dbb3 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -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" @@ -19,4 +19,3 @@ jobs: - name: Check format run: ruff format --check . - diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7f6ab5ef..56d3c705 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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