Skip to content

Bump black from 22.12.0 to 23.12.1 (#38) #84

Bump black from 22.12.0 to 23.12.1 (#38)

Bump black from 22.12.0 to 23.12.1 (#38) #84

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch: # to trigger manually
jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest ]
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install packages
run: |
poetry run make install
- name: Format
run: |
poetry run make format
- name: Lint
run: |
poetry run make lint
- name: Run tests
run: |
poetry run make test
- name: Upload coverage to Codecov
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' && github.repository == 'BorealisAI/group-feature-importance' && (github.event_name == 'push' || github.event_name == 'pull_request')
uses: codecov/codecov-action@v2
with:
file: ./coverage.xml
# Ignore codecov failures as the codecov server is not
# very reliable but we don't want to report a failure
# in the github UI just because the coverage report failed to
# be published.
fail_ci_if_error: false