Update pylint.yml to change using Node.js 16 (deprecated) to Node.js 20 #23
This file contains hidden or 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: Pylint | |
on: [push] | |
jobs: | |
build: | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
python-version: ["3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Miniconda | |
run: | | |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh -O miniconda.sh | |
bash miniconda.sh -b -p $HOME/miniconda | |
echo "$HOME/miniconda/bin" >> $GITHUB_PATH | |
source $HOME/miniconda/etc/profile.d/conda.sh | |
conda init zsh | |
- name: Set up Conda environment | |
run: | | |
source $HOME/miniconda/etc/profile.d/conda.sh | |
conda config --add channels conda-forge | |
conda env create -f trading_env.yml | |
- name: Activate Conda and install additional dependencies | |
run: | | |
source $HOME/miniconda/etc/profile.d/conda.sh | |
conda activate trading_env | |
conda install -y flake8 pytest mypy black isort pre-commit sphinx tox | |
pip install pytest-cov sphinx-rtd-theme | |
- name: Analyze the code with Pylint | |
continue-on-error: true | |
run: | | |
source $HOME/miniconda/etc/profile.d/conda.sh | |
conda activate trading_env | |
pylint $(git ls-files '*.py') |