Skip to content

Run pritter

Run pritter #384

Workflow file for this run

name: Apply
on:
push:
jobs:
apply:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 30
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Get yarn cache
id: yarn-cache
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Cache python modules
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
yarn --dev
python -m pip install -r requirements.txt
python -m pip install -r requirements-dev.txt
- name: Lint
run: |
yarn run lint
flake8
- name: Unit test (Python)
run: pytest
- name: Apply
if: github.ref == 'refs/heads/main' && success()
env:
FEMIWIKI_BOT_PASSWORD: ${{ secrets.FEMIWIKI_BOT_PASSWORD }}
run: |
git config --global core.quotepath false
python apply.py