diff --git a/.github/workflows/ci_python.yml b/.github/workflows/ci_python.yml index bccb85d..df8362a 100644 --- a/.github/workflows/ci_python.yml +++ b/.github/workflows/ci_python.yml @@ -1,9 +1,5 @@ name: Build & Test the Python Bindings -defaults: - run: - working-directory: python - on: push: pull_request: @@ -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: @@ -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 @@ -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 @@ -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 @@ -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 @@ -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