Merge pull request #1691 from scpwiki/translate-null #1314
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: '[ftml] Rust' | |
on: | |
pull_request: | |
paths: | |
- 'ftml/Cargo.toml' | |
- 'ftml/Cargo.lock' | |
- 'ftml/conf/*.toml' | |
- 'ftml/docs/*.md' | |
- 'ftml/src/**/*' | |
- 'ftml/scripts/*' | |
- '.github/workflows/ftml-config.yaml' | |
push: | |
branches: | |
- develop | |
- prod | |
jobs: | |
conf_check: | |
name: Configurations | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Pip Cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cache/pip | |
key: ${{ runner.os }}-ftml-python-${{ hashFiles('ftml/scripts/*-requirements.txt') }} | |
- name: Run Check | |
run: | | |
# Dependencies | |
python -m pip install --upgrade pip | |
pip install -r ftml/scripts/check_conf-requirements.txt | |
# Scripts | |
python ftml/scripts/check_conf.py ftml |