Skip to content

Commit

Permalink
Use pyenv
Browse files Browse the repository at this point in the history
  • Loading branch information
YuryHrytsuk committed Nov 14, 2023
1 parent b0d7cdb commit 0c0f537
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,22 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python
run: echo "::set-output name=python_version::$(cat .python_version)"
- name: Define python
run: echo "PYTHON_VERSION=$(cat .python-version)" >> $GITHUB_ENV

- name: Install python version

uses: gabrielfalcao/pyenv-action@v11
with:
default: "${{ env.PYTHON_VERSION }}"
command: pip install -U pip # upgrade pip after installing python

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pre-commit
pre-commit install
- name: Run pre-commit
run: pre-commit run --all-files
run: SKIP=stack-yml-generated-is-valid pre-commit run --all-files

0 comments on commit 0c0f537

Please sign in to comment.