Minor changes to installation to fix build process in release scripts… #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Type checks | |
permissions: read-all | |
on: | |
merge_group: | |
types: [checks_requested] | |
push: | |
branches: | |
- develop | |
- release-* | |
pull_request: | |
branches: | |
- develop | |
- release-* | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
backend_type_checks: | |
name: Backend | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository so that local actions can be used | |
uses: actions/checkout@v4 | |
- name: Merge develop and set up Python | |
uses: ./.github/actions/merge-develop-and-setup-python | |
- name: Initialize Docker containers | |
run: | | |
make build | |
make stop | |
- name: Run Mypy type checks | |
if: startsWith(github.head_ref, 'update-changelog-for-release') == false | |
run: make run_tests.mypy | |
- name: Report failure if failed on oppia/oppia develop branch | |
if: ${{ failure() && github.event_name == 'push' && github.repository == 'oppia/oppia' && github.ref == 'refs/heads/develop'}} | |
uses: ./.github/actions/send-webhook-notification | |
with: | |
message: "Python type checks failed on the upstream develop branch." | |
webhook-url: ${{ secrets.BUILD_FAILURE_ROOM_WEBHOOK_URL }} | |
frontend_type_checks: | |
name: Frontend | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository so that local actions can be used | |
uses: actions/checkout@v4 | |
- name: Merge develop and set up Python | |
uses: ./.github/actions/merge-develop-and-setup-python | |
- name: Install Chrome | |
uses: ./.github/actions/install-chrome | |
- name: Initialize Docker Containers | |
uses: ./.github/actions/install-oppia-dependencies-docker | |
- name: Run typescript tests | |
run: make run_tests.typescript | |
- name: Run typescript tests in strict mode | |
run: make run_tests.typescript PYTHON_ARGS="--strict_checks" | |
- name: Report failure if failed on oppia/oppia develop branch | |
if: ${{ failure() && github.event_name == 'push' && github.repository == 'oppia/oppia' && github.ref == 'refs/heads/develop'}} | |
uses: ./.github/actions/send-webhook-notification | |
with: | |
message: "A typescript test failed on the upstream develop branch." | |
webhook-url: ${{ secrets.BUILD_FAILURE_ROOM_WEBHOOK_URL }} |