[CONTENT] Teacher manual improvements NL EN #16193
Workflow file for this run
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
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
# If you change this name, don't forget to change deploy-to-alpha.yml | |
name: Unit tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: {} # Allow running the workflow on-demand | |
jobs: | |
# This identifier gets used in .mergify.yml | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.9 | |
- name: Install Python dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
pip3 install -r requirements.txt | |
- name: Install Nodejs dependencies | |
run: | | |
npm ci | |
- name: Generate grammar files | |
run: | | |
python ./content/yaml_to_lark_utils.py | |
- name: Compiling Babel translations | |
run: | | |
pybabel compile -f -d translations | |
- name: Run weblate tests | |
shell: pwsh | |
id: weblate_tests | |
if: ${{ github.event.pull_request.user.login == 'weblate' }} | |
run: | | |
build-tools/github/validate --weblate | |
- name: Run all tests | |
shell: pwsh | |
if: ${{ ((github.event.pull_request.user.login != 'weblate') || github.event.label.name == 'force_tests') }} | |
run: | | |
build-tools/github/validate --all |