Skip to content

feat: update dependencies in release workflow #135

feat: update dependencies in release workflow

feat: update dependencies in release workflow #135

Workflow file for this run

name: CI
on:
push:
branches-ignore:
- release
# This is what will cancel the workflow
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.11]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
- name: Setup Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Check format
run: |
poetry run black .
git diff --exit-code
- name: Check lint (windows)
if: matrix.os == 'windows-latest'
run: |
ci/check_lint/windows.ps1
- name: Check lint (unix)
if: matrix.os != 'windows-latest'
run: |
ci/check_lint/unix.sh