Updated contributing md #117
This file contains hidden or 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: Audits | |
| # Smoke-test every audit so a broken dataset path or script | |
| # (like the AI Fair Recruitment FileNotFoundError) is caught automatically. | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| jobs: | |
| run-audits: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| audit: | |
| - "COMPAS" | |
| - "AI Fair Recruitment" | |
| - "German Credit Lending" | |
| - "Insurance Denial" | |
| - "Benefits Denial" | |
| - "Healthcare Readmission" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.12' | |
| cache: 'pip' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Run ${{ matrix.audit }} audit scripts | |
| run: | | |
| set -e | |
| echo "::group::${{ matrix.audit }} — unfair.py" | |
| python "${{ matrix.audit }}/unfair.py" | |
| echo "::endgroup::" | |
| echo "::group::${{ matrix.audit }} — fair.py" | |
| python "${{ matrix.audit }}/fair.py" | |
| echo "::endgroup::" |