Feature/generatemodels command #394
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
name: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main, release] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.11.10"] | |
node-version: ["20.18.1"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: jorelali/setup-elm@v3 | |
with: | |
elm-version: 0.19.1 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 9 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "pnpm" | |
cache-dependency-path: example/elm_programs/static_src/pnpm-lock.yaml | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install poetry | |
poetry install | |
- name: Install example JS dependencies | |
run: cd example && poetry run python manage.py djelm npm elm_programs install | |
# - name: Lint python modules | |
# run: | | |
# poetry run tox -e lint | |
# - name: Run unit tests | |
# run: | | |
# poetry run tox -e django42 | |
- name: Install playwright browser | |
run: poetry run doit install_e2e_browser | |
- name: Run browser tests | |
run: poetry run doit prepare_e2e_tests & poetry run tox -vvv -e e2e | |
- name: Run browser tests after delete compile | |
run: | | |
rm -rf example/elm_programs/static_src/elm-stuff/djelm* | |
rm -rf example/elm_programs/static/dist | |
poetry run tox -e e2e |