Refaktoring komponentów CourseFilter oraz CourseList: Analiza uzycia komponentow CourseFilter oraz CourseList. Dodanie wyjasniajacych komentarzy w tych komponentach. Refaktoring komponentow CourseList w celu zmniejszenia liczby widocznych roznic. Zmiany dotyczą głównie ujednolicenia sposobu deklaracji komponentów Vue i są nieinwazyjne. Porządki w importach dotyczących wyżej wymienionych komponentów. #7691
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: lint | |
on: | |
- push | |
- pull_request | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
env: | |
PYTHON_VERSION: 3.8 | |
NODE_VERSION: 12 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- uses: actions/cache@v2 | |
with: | |
path: zapisy/.yarn/cache | |
key: ${{ runner.os }}-yarn-${{ hashFiles('zapisy/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Install Python Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r zapisy/requirements.test.txt | |
- name: Install Node Dependencies | |
run: | | |
cd zapisy | |
yarnpkg install --immutable | |
- name: Lint Node assets | |
run: | | |
cd zapisy | |
yarn lint | |
- name: Lint Python | |
run: | | |
python -m flake8 --statistics . |