Allow slash in filename #350
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: Apply | |
on: | |
push: | |
jobs: | |
apply: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 30 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Get yarn cache | |
id: yarn-cache | |
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v3 | |
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@v3 | |
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 |