chore: update project plan for peoject work 7 #23
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: Pipeline | |
on: | |
push: | |
branches: | |
- main | |
# Tests are only triggered on every push to the 'project' directory, not the entire project | |
paths: | |
- project/** | |
jobs: | |
Test: | |
strategy: | |
matrix: | |
platform: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.11"] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
# Checkout | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: main | |
# Install python | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# Dependencies | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pylint | |
# Check lints | |
# TODO:: Lint config didn't work! | |
# TODO:: It's for project in general, not the work project 5! | |
- name: Analysing the code with pylint | |
run: | | |
pylint --rcfile=.pylintrc --disable=C0121,R0801,W0511,W0718,R0903,C0301,R0902,C0116,C0115,E0401,E0611 $(git ls-files 'project/*.py') | |
# Run test | |
- name: Run Tests | |
run: | | |
bash project/tests.sh |