Skip to content

Commit

Permalink
chore(ci): fix python ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ChieloNewctle committed May 9, 2024
1 parent 6badcbb commit a2cbb29
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ci_python.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: Build & Test the Python Bindings

defaults:
run:
working-directory: python

on:
push:
pull_request:
Expand All @@ -25,8 +21,10 @@ jobs:
- name: Install dependencies
run: pip install ruff black
- name: Ruff
working-directory: python
run: ruff check .
- name: Black
working-directory: python
run: black --check --diff .

rustfmt:
Expand All @@ -38,7 +36,8 @@ jobs:
fetch-depth: 0
- run: rustup update stable && rustup default stable
- run: rustup component add rustfmt
- run: cargo fmt --all --check
- working-directory: python
run: cargo fmt --all --check

test:
name: Run tests
Expand All @@ -56,6 +55,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install locally
working-directory: python
run: pip install -e ".[test]"
- name: Install additional dependencies
run: pip install pytest-md pytest-emoji
Expand Down Expand Up @@ -99,6 +99,7 @@ jobs:
- name: pytest
if: ${{ startsWith(matrix.target, 'x86_64') }}
shell: bash
working-directory: python
run: |
set -e
pip install --pre "mtc_token_healing[test]" --find-links dist --force-reinstall
Expand Down Expand Up @@ -148,6 +149,7 @@ jobs:
- name: pytest
if: ${{ !startsWith(matrix.target, 'aarch64') }}
shell: bash
working-directory: python
run: |
set -e
pip install --pre "mtc_token_healing[test]" --find-links dist --force-reinstall
Expand Down Expand Up @@ -180,6 +182,7 @@ jobs:
- name: pytest
if: ${{ !startsWith(matrix.target, 'aarch64') }}
shell: bash
working-directory: python
run: |
set -e
pip install --pre "mtc_token_healing[test]" --find-links dist --force-reinstall
Expand Down

0 comments on commit a2cbb29

Please sign in to comment.