diff --git a/.github/workflows/add_to_apollo_project.yml b/.github/workflows/add_to_apollo_project.yml deleted file mode 100644 index 8c052f3d..00000000 --- a/.github/workflows/add_to_apollo_project.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Add issues and PRs to the Apollo project - -on: - issues: - types: [opened] - pull_request: - types: [opened] - -jobs: - add-to-project: - name: Add to Apollo project - uses: openedx/.github/.github/workflows/add-issue-to-a-project.yml@master - secrets: - GITHUB_APP_ID: ${{ vars.APOLLO_APP_ID }} - GITHUB_APP_PRIVATE_KEY: ${{ secrets.APOLLO_APP_SECRET }} - with: - ORGANIZATION: eduNEXT - PROJECT_NUMBER: 1 diff --git a/.github/workflows/bump_version.yml b/.github/workflows/bump_version.yml deleted file mode 100644 index 6ba17094..00000000 --- a/.github/workflows/bump_version.yml +++ /dev/null @@ -1,74 +0,0 @@ -name: Bump version -on: - push: - branches: - - master -jobs: - bumpversion: - runs-on: ubuntu-latest - outputs: - version: ${{ steps.tag_version.outputs.new_version }} - previous_tag: ${{ steps.tag_version.outputs.previous_tag }} - bump_commit_sha: ${{ steps.bumpversion.outputs.commit_hash }} - steps: - - uses: actions/checkout@v4 - with: - token: ${{ secrets.PAT }} - - name: Get next version - id: tag_version - uses: mathieudutour/github-tag-action@v6.1 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - default_bump: false - default_prerelease_bump: false - dry_run: true - - name: Set up Python 3.8 - uses: actions/setup-python@v5 - with: - python-version: "3.8" - - name: Create bumpversion - if: steps.tag_version.outputs.new_version - run: | - pip install bumpversion - bumpversion --new-version ${{ steps.tag_version.outputs.new_version }} setup.cfg - - name: Update Changelog - if: steps.tag_version.outputs.new_version - uses: stefanzweifel/changelog-updater-action@v1 - with: - latest-version: ${{ steps.tag_version.outputs.new_tag }} - release-notes: ${{ steps.tag_version.outputs.changelog }} - - name: Commit bumpversion - id: bumpversion - if: steps.tag_version.outputs.new_version - uses: stefanzweifel/git-auto-commit-action@v5 - with: - branch: ${{ github.ref }} - commit_message: "docs(bumpversion): ${{ steps.tag_version.outputs.previous_tag }} → ${{ steps.tag_version.outputs.new_version }}" - file_pattern: setup.cfg CHANGELOG.md eox_core/* - release: - needs: bumpversion - if: needs.bumpversion.outputs.version - runs-on: ubuntu-latest - outputs: - tag: ${{ steps.tag_version.outputs.new_tag }} - changelog: ${{ steps.tag_version.outputs.changelog }} - steps: - - uses: actions/checkout@v4 - with: - token: ${{ secrets.PAT }} - - name: Create tag - id: tag_version - uses: mathieudutour/github-tag-action@v6.1 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - commit_sha: ${{ needs.bumpversion.outputs.bump_commit_sha }} - default_bump: false - default_prerelease_bump: false - - name: Create a GitHub release - if: steps.tag_version.outputs.new_tag - uses: ncipollo/release-action@v1 - with: - tag: ${{ steps.tag_version.outputs.new_tag }} - name: Release ${{ steps.tag_version.outputs.new_tag }} - body: ${{ steps.tag_version.outputs.changelog }} - draft: true diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml deleted file mode 100644 index 3d98fd68..00000000 --- a/.github/workflows/commitlint.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: Lint Commit Messages -on: [pull_request] - -jobs: - commitlint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - uses: wagoid/commitlint-github-action@v6 diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 71b2a025..9ad0835b 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - tutor_version: ['<18.0.0', '<19.0.0', 'nightly'] + tutor_version: ['nightly'] steps: - name: Run Integration Tests uses: eduNEXT/integration-test-in-tutor@bav/fix-nightly diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml deleted file mode 100644 index 6de2464f..00000000 --- a/.github/workflows/labeler.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: labeler - -on: - pull_request: - branches: - - 'master' - -jobs: - labeler: - runs-on: ubuntu-latest - name: Label the PR size - steps: - - uses: codelytv/pr-size-labeler@v1 - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - xs_max_size: '10' - s_max_size: '100' - m_max_size: '500' - l_max_size: '1000' - fail_if_xl: 'true' - message_if_xl: > - 'This PR exceeds the recommended size of 1000 lines. - Please make sure you are NOT addressing multiple issues with one PR. - Note this PR might be rejected due to its size.' - github_api_url: 'api.github.com' - files_to_ignore: 'eox-core-test.postman_collection.json eox-core-test.postman_environment.json' diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml deleted file mode 100644 index b6fbfecd..00000000 --- a/.github/workflows/python-publish.yml +++ /dev/null @@ -1,40 +0,0 @@ -# This workflow will upload a Python Package using Twine when a release is created -# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries - -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -name: Publish Python 🐍 distributions 📦 to PyPI - -on: - release: - types: [published] - -permissions: - contents: read - -jobs: - deploy: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.10' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install build - - name: Build package - run: | - python -m build --sdist --wheel --outdir dist/ . - - name: Publish package - uses: pypa/gh-action-pypi-publish@v1.9.0 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml deleted file mode 100644 index 02521da0..00000000 --- a/.github/workflows/tests.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Test suite workflow - -on: - pull_request: - branches: - - 'master' - -jobs: - Running-test: - runs-on: ubuntu-latest - strategy: - max-parallel: 2 - matrix: - python-version: ["3.8", "3.11"] - django: ["42"] - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Cache dependency - uses: actions/cache@v3 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements/test.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - - name: Install Dev Requirements - run: | - make install-dev-dependencies - - name: Run Python Tests - run: | - export TOXENV=${TOX_ENV//./} - make run-tests - env: - TOX_ENV: py${{matrix.python-version}}-django${{matrix.django}}