build: make cargo deny checks in ci more clear #1135
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python CI | |
on: | |
pull_request: | |
workflow_dispatch: | |
workflow_call: | |
secrets: | |
GIT_HUB_TOKEN: | |
required: true | |
CACHIX_AUTH_TOKEN: | |
required: false | |
push: | |
branches: | |
- main | |
- prod | |
tags: | |
- '**' | |
jobs: | |
format: | |
name: Black Format for Python | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # pin@v3 | |
with: | |
token: ${{ secrets.GIT_HUB_TOKEN }} | |
- uses: cachix/install-nix-action@ba0dd844c9180cbf77aa72a116d6fbc515d0e87b # pin@v27 | |
with: | |
github_access_token: ${{ secrets.GIT_HUB_TOKEN }} | |
- uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # pin@v15 | |
continue-on-error: true | |
with: | |
name: worldcoin | |
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
- name: Print environment | |
run: | | |
uname -a | |
nix develop -c env | |
- name: Check Python formatting | |
run: | | |
nix develop -c \ | |
black --check . | |