Skip to content

chore(deps): update all dependencies (major) #1109

chore(deps): update all dependencies (major)

chore(deps): update all dependencies (major) #1109

Workflow file for this run

name: PR checks
on: pull_request
jobs:
run-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build image
run: DOCKER_BUILDKIT=1 docker build --tag cn-ubuntu-com .
- name: Run image
run: |
docker run --detach --env SECRET_KEY=insecure_dev_key --network host cn-ubuntu-com
sleep 1
curl --head --fail --retry-delay 1 --retry 30 --retry-connrefused http://localhost
run-dotrun:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dotrun
run: sudo pip3 install dotrun requests==2.31.0
- name: Install dependencies
run: |
sudo chmod -R 777 .
dotrun install
- name: Build assets
run: dotrun build
- name: Test site
run: |
dotrun &
curl --head --fail --retry-delay 1 --retry 30 --retry-connrefused http://localhost:8010
lint-scss:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: yarn install --immutable
- name: Lint scss
run: yarn lint-scss
lint-python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install node dependencies
run: yarn install --immutable
- name: Install python dependencies
run: |
python3 -m pip install --upgrade pip
sudo pip3 install flake8 black
- name: Lint python
run: yarn lint-python
test-python:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install requirements
run: |
sudo apt-get update && sudo apt-get install --yes python3-setuptools
sudo pip3 install -r requirements.txt
- name: Install dependencies
run: sudo pip3 install coverage
- name: Install node dependencies
run: yarn install --immutable
- name: Build resources
run: yarn build
- name: Run tests with coverage
run: |
DISCOURSE_API_KEY=${{secrets.DISCOURSE_API_KEY}} DISCOURSE_API_USERNAME=${{secrets.DISCOURSE_API_USERNAME}} SECRET_KEY=insecure_dev_key coverage run --source=. -m unittest discover tests
bash <(curl -s https://codecov.io/bash) -cF python
test-js:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Yarn install
run: yarn install
- name: Yarn build
run: yarn build
- name: Test JavaScript
run: yarn test-js
lint-js:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Yarn install
run: yarn install
- name: Yarn build
run: yarn build
- name: Lint JavaScript
run: yarn lint-js
lint-jinja:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install node dependencies
run: yarn install --immutable
- name: Install python dependencies
run: |
python3 -m pip install --upgrade pip
sudo pip3 install djlint
- name: Get changed HTML files in the templates folder
id: changed-files
uses: tj-actions/changed-files@v45
with:
files: templates/**
- name: Lint jinja
if: steps.changed-files.outputs.any_changed == 'true'
env:
CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
echo "The following files have changed: $CHANGED_FILES"
djlint $CHANGED_FILES --lint