fix: Non-square images #35
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: Tests and Linters | |
"on": | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Set Node.js 16.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22.x | |
- name: Setup Locales | |
run: | | |
sudo apt-get install -y locales gettext | |
echo "en_US.UTF-8 UTF-8" | sudo tee -a /etc/locale.gen | |
echo "fr_FR.UTF-8 UTF-8" | sudo tee -a /etc/locale.gen | |
echo "ja_JP.UTF-8 UTF-8" | sudo tee -a /etc/locale.gen | |
sudo locale-gen | |
sudo locale -a | |
localectl status | |
- name: Install Python Dependencies | |
run: | | |
python3.12 -m pip install --upgrade pip | |
python3.12 -m pip install hatch hatchling pre-commit | |
- name: Install Frontend Dependencies | |
run: yarn install | |
- name: Setup Env Variables | |
run: sed s/SECRET_KEY=/SECRET_KEY=fake-key/ example.env > .env | |
- name: Run pre-commit | |
run: pre-commit run --all-files | |
- name: Run Python Tests | |
run: | | |
hatch run ./manage.py compilemessages | |
hatch run test:cov | |
- name: Run Frontend Tests | |
run: yarn test |