wip: relax conda #145
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: style | |
on: | |
push: | |
branches-ignore: | |
- 'gh_pages' | |
jobs: | |
super-linter: | |
name: Super Linter | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Lint code base | |
uses: github/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # for PR annotations | |
LINTER_RULES_PATH: / | |
# NOTE: Pylint is superseded by black. | |
# E1136 errors in typing `'Union' is unsubscriptable` | |
VALIDATE_PYTHON_PYLINT: false | |
VALIDATE_PYTHON_BLACK: false # version mismatch | |
VALIDATE_PYTHON_MYPY: false # no mypy support currenttly | |
PYTHON_BLACK_CONFIG_FILE: pyproject.toml | |
PYTHON_FLAKE8_CONFIG_FILE: setup.cfg | |
PYTHON_ISORT_CONFIG_FILE: pyproject.toml | |
JSCPD_CONFIG_FILE: .github/workflows/jscpd.json | |
FILTER_REGEX_EXCLUDE: .*docs/.* | |
- name: Send Slack notification | |
uses: 8398a7/action-slack@v2 | |
if: failure() | |
with: | |
status: ${{ job.status }} | |
text: ":mag: ${{ github.job }} :mag:" | |
author_name: ${{ github.actor }} | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
black-check: | |
name: Black | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Get python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.7" | |
- name: Install black | |
run: pip install black==22.3.0 | |
- name: Format | |
run: black . --check --diff --color | |
- name: Send Slack notification | |
uses: 8398a7/action-slack@v2 | |
if: failure() | |
with: | |
status: ${{ job.status }} | |
text: ":black_circle: ${{ github.job }} :black_circle:" | |
author_name: ${{ github.actor }} | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |