Bump pylint from 3.0.3 to 3.1.0 #94
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: 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 |