From f203c252015a114bc9f9647c31f1050e698981e2 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Mon, 17 Oct 2022 19:49:31 -0500 Subject: [PATCH] Remove workflows --- .github/workflows/build.yml | 17 ------- .github/workflows/compilemessages.yml | 40 ---------------- .github/workflows/makemessages.yml | 53 --------------------- .github/workflows/updatemessages.yml | 67 --------------------------- 4 files changed, 177 deletions(-) delete mode 100644 .github/workflows/build.yml delete mode 100644 .github/workflows/compilemessages.yml delete mode 100644 .github/workflows/makemessages.yml delete mode 100644 .github/workflows/updatemessages.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 7d1a74e..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: build -on: [push, pull_request] -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: Set up Python 3.7 - uses: actions/setup-python@v1 - with: - python-version: 3.7 - - name: Install flake8 - run: pip install flake8 flake8-import-order flake8-future-import flake8-commas flake8-logging-format - - name: Lint with flake8 - run: | - flake8 --version - flake8 diff --git a/.github/workflows/compilemessages.yml b/.github/workflows/compilemessages.yml deleted file mode 100644 index edcf2bd..0000000 --- a/.github/workflows/compilemessages.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: compilemessages -on: - push: - paths: - - 'locale/**' - pull_request: - paths: - - 'locale/**' -jobs: - compilemessages: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: Set up Python 3.7 - uses: actions/setup-python@v1 - with: - python-version: 3.7 - - name: Checkout submodules - run: | - git submodule init - git submodule update - - name: Install requirements - run: | - sudo apt-get install gettext - pip install -r requirements.txt - pip install pymysql - - name: Check .po file validity - run: | - fail=0 - while read -r file; do - if ! msgfmt --check-format "$file"; then - fail=$((fail + 1)) - fi - done < <(find locale -name '*.po') - exit "$fail" - shell: bash - - name: Compile messages - run: | - echo "STATIC_ROOT = '/tmp'" > dmoj/local_settings.py - python manage.py compilemessages diff --git a/.github/workflows/makemessages.yml b/.github/workflows/makemessages.yml deleted file mode 100644 index fdf375d..0000000 --- a/.github/workflows/makemessages.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: makemessages -on: - push: - branches: - - master -jobs: - makemessages: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: Set up Python 3.7 - uses: actions/setup-python@v1 - with: - python-version: 3.7 - - name: Checkout submodules - run: | - git submodule init - git submodule update - - name: Install requirements - run: | - sudo apt-get install gettext - curl -O https://artifacts.crowdin.com/repo/deb/crowdin.deb - sudo dpkg -i crowdin.deb - pip install -r requirements.txt - pip install pymysql - - name: Collect localizable strings - run: | - echo "STATIC_ROOT = '/tmp'" > dmoj/local_settings.py - python manage.py makemessages -l en -e py,html,txt - python manage.py makemessages -l en -d djangojs - - name: Upload strings to Crowdin - env: - CROWDIN_API_TOKEN: ${{ secrets.CROWDIN_API_TOKEN }} - run: | - cat > crowdin.yaml <> crowdin.yaml - crowdin upload sources diff --git a/.github/workflows/updatemessages.yml b/.github/workflows/updatemessages.yml deleted file mode 100644 index b000444..0000000 --- a/.github/workflows/updatemessages.yml +++ /dev/null @@ -1,67 +0,0 @@ -name: updatemessages -on: - schedule: - - cron: '0 * * * *' -jobs: - updatemessages: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: Set up Python 3.7 - uses: actions/setup-python@v1 - with: - python-version: 3.7 - - name: Checkout submodules - run: | - git submodule init - git submodule update - - name: Install requirements - run: | - sudo apt-get install gettext - curl -O https://artifacts.crowdin.com/repo/deb/crowdin.deb - sudo dpkg -i crowdin.deb - pip install -r requirements.txt - pip install pymysql - - name: Download strings from Crowdin - env: - CROWDIN_API_TOKEN: ${{ secrets.CROWDIN_API_TOKEN }} - run: | - cat > crowdin.yaml <> crowdin.yaml - crowdin download - rm crowdin.yaml - - name: Cleanup - run: | - rm -rf src/ - git add locale - git checkout . - git clean -fd - - name: Create pull request - uses: peter-evans/create-pull-request@v1.4.1-multi - env: - GITHUB_TOKEN: ${{ secrets.REPO_SCOPED_TOKEN }} - COMMIT_MESSAGE: 'i18n: update translations from Crowdin' - PULL_REQUEST_TITLE: 'Update translations from Crowdin' - PULL_REQUEST_BODY: This PR has been auto-generated to pull in latest translations from [Crowdin](https://translate.dmoj.ca). - PULL_REQUEST_LABELS: i18n, enhancement - PULL_REQUEST_REVIEWERS: Xyene, quantum5 - PULL_REQUEST_BRANCH: update-i18n - BRANCH_SUFFIX: none