Skip to content

waveforms: fix is_gpu #36

waveforms: fix is_gpu

waveforms: fix is_gpu #36

Workflow file for this run

name: pre-commit
on: [push, pull_request]
jobs:
format:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Extract tag name
id: tag
run: echo ::set-output name=TAG_NAME::$(echo $GITHUB_REF | cut -d / -f 3)
- name: Update version in setup.py
run: >-
sed -i "s/{{VERSION_PLACEHOLDER}}/${{ steps.tag.outputs.TAG_NAME }}/g" setup.py
- name: Install packages
run: |
python -m pip install --upgrade pip
python -m pip install pre-commit pylint
- name: Lint
run: pre-commit run --all-files --config pre-commit-hooks/.pre-commit-config.yaml