Skip to content

Enable spack pipelines #195

Enable spack pipelines

Enable spack pipelines #195

Workflow file for this run

name: SpackBot CI

Check failure on line 1 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

(Line: 4, Col: 17): A sequence was not expected
on:
pull_request: []
jobs:
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check formatting
run: |
export PATH="/usr/share/miniconda/bin:$PATH"
pip install black flake8
black --check --diff spackbot
flake8 spackbot
# Likely only maintainers will work on Spackbot
- name: Comment Pull Request
if: github.event_name == 'pull_request' && failure()
uses: marocchino/sticky-pull-request-comment@v1.1.0
with:
message: 'Please format your code with [black](https://black.readthedocs.io): `black spackbot`.'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# TODO add tests here?