Skip to content

chore: Update Python dev dep: Bump ruff from 0.5.7 to 0.6.1 #49

chore: Update Python dev dep: Bump ruff from 0.5.7 to 0.6.1

chore: Update Python dev dep: Bump ruff from 0.5.7 to 0.6.1 #49

Workflow file for this run

name: make python devex basics
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
poetry-checks:
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
# This will post a comment on PRs when poetry.lock changes
- name: Diff poetry.lock
uses: nborrmann/diff-poetry-lock@c0afd3666864cec339f03ee5c5cf9cb671780c12
build:
strategy:
matrix:
os:
- ubuntu-latest
- macos-13
- macos-14
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Add Poetry and pyenv setup
run: |
echo 'export PYENV_ROOT="$HOME/.pyenv"' | tee -a ~/.zshrc | tee -a ~/.bashrc | tee -a ~/.profile
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' | tee -a ~/.zshrc | tee -a ~/.bashrc | tee -a ~/.profile
echo 'eval "$(pyenv init -)"' | tee -a ~/.zshrc | tee -a ~/.bashrc | tee -a ~/.profile
(
echo
echo 'if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv virtualenv-init -)"; fi'
) | tee -a ~/.zshrc | tee -a ~/.bashrc | tee -a ~/.profile
echo 'export PATH="${HOME}/.local/bin:$PATH"' | tee -a ~/.zshrc | tee -a ~/.bashrc | tee -a ~/.profile
- name: Install dependencies initially
shell: "bash --login -eo pipefail {0}"
env:
# Force overwriting during tests since a human cannot intervene
# Do not upgrade dependents unless we have to
BREW_BUNDLE_OPTS: --force --no-upgrade
# Have to run it twice because of some dependencies
# installed but not usable the first time.
run: make deps || true
- name: Show program paths
shell: "bash --login -eo pipefail {0}"
run: |
echo "${PATH}"
command -v pyenv || true
command -v poetry || true
command -v python3 || true
- name: Install dependencies after installing some dependencies
shell: "bash --login -eo pipefail {0}"
env:
# See above for an explanation of these options.
BREW_BUNDLE_OPTS: --force --no-upgrade
run: make deps
- name: Run check
shell: "bash --login -eo pipefail {0}"
run: make check
- name: Run tests
shell: "bash --login -eo pipefail {0}"
run: make test
- name: Run build
shell: "bash --login -eo pipefail {0}"
run: make build