Browse Source

Merge 67c1c9c03c into 2fbed93624

pull/10460/merge
mdevolde 4 weeks ago
committed by GitHub
parent
commit
4bad1cc6d9
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 12
      .github/workflows/build.yml
  2. 6
      .github/workflows/crowdin_download.yml
  3. 4
      .github/workflows/crowdin_upload.yml
  4. 8
      .github/workflows/lint.yml
  5. 2
      .github/workflows/scripts/close_and_reopen_pr.js
  6. 4
      .github/workflows/test.yml

12
.github/workflows/build.yml

@ -16,12 +16,12 @@ jobs:
name: dists & docs (${{ matrix.python-version }}/${{ matrix.language }})
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
- name: Set up CPython ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ matrix.python-version }}
@ -35,9 +35,9 @@ jobs:
python ./setup.py sdist bdist_wheel
# - name: Upload artifacts
# uses: actions/upload-artifact@v2
# uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
# with:
# name: distributions
# name: distributions-${{ matrix.python-version }}-${{ matrix.language }}
# path: dist/*
- name: Install package
@ -53,8 +53,8 @@ jobs:
DOCS_LANGUAGE: ${{ matrix.language }}
# - name: Upload docs
# uses: actions/upload-artifact@v2
# uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
# if: always()
# with:
# name: docs-${{ matrix.language }}
# name: docs-${{ matrix.python-version }}-${{ matrix.language }}
# path: docs/_build/html/*

6
.github/workflows/crowdin_download.yml

@ -27,7 +27,7 @@ jobs:
environment: Crowdin
name: download
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
ref: master
@ -49,7 +49,7 @@ jobs:
- name: Create pull request
id: cpr_crowdin
uses: peter-evans/create-pull-request@v3
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Crowdin translations download
@ -60,7 +60,7 @@ jobs:
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- name: Close and reopen the PR with different token to trigger CI
uses: actions/github-script@v3
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
PR_NUMBER: ${{ steps.cpr_crowdin.outputs.pull-request-number }}
PR_OPERATION: ${{ steps.cpr_crowdin.outputs.pull-request-operation }}

4
.github/workflows/crowdin_upload.yml

@ -9,12 +9,12 @@ jobs:
environment: Crowdin
name: upload
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
- name: Set up CPython 3.x
uses: actions/setup-python@v4
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: 3.x

8
.github/workflows/lint.yml

@ -15,12 +15,12 @@ jobs:
name: check ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
- name: Set up CPython ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ matrix.python-version }}
@ -31,12 +31,12 @@ jobs:
pip install -U -r requirements.txt
- name: Setup node.js
uses: actions/setup-node@v3
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: '16'
- name: Run Pyright
uses: jakebailey/pyright-action@v1
uses: jakebailey/pyright-action@8ec14b5cfe41f26e5f41686a31eb6012758217ef # v3.0.2
with:
version: '1.1.394'
warnings: false

2
.github/workflows/scripts/close_and_reopen_pr.js

@ -12,7 +12,7 @@ module.exports = (async function ({github, context}) {
await new Promise(r => setTimeout(r, 5000));
// Close the PR
github.issues.update({
await github.rest.issues.update({
issue_number: pr_number,
owner: context.repo.owner,
repo: context.repo.repo,

4
.github/workflows/test.yml

@ -15,12 +15,12 @@ jobs:
name: pytest ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
- name: Set up CPython ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ matrix.python-version }}

Loading…
Cancel
Save