Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch testing from CircleCI to GitHub Actions #642

Merged
merged 13 commits into from
Feb 18, 2022
Merged
300 changes: 0 additions & 300 deletions .circleci/config.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ newPRWelcomeComment: >
Thanks for opening this pull request!
We have detected this is the first time you have contributed
to *NiMARE*.
Please check out our [contributing guidelines](https://github.com/neurostuff/NiMARE/blob/master/CONTRIBUTING.md).
Please check out our [contributing guidelines](https://github.com/neurostuff/NiMARE/blob/main/CONTRIBUTING.md).

We invite you to list yourself as a *NiMARE* contributor, so if your name
is not already mentioned, please modify the
[``.zenodo.json``](https://github.com/neurostuff/NiMARE/blob/master/.zenodo.json)
[``.zenodo.json``](https://github.com/neurostuff/NiMARE/blob/main/.zenodo.json)
file with your data right above Angie's entry. Example:

```
Expand Down
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ If there is other information that would be helpful to include, please don't hes

Please also label your pull request with the relevant tags.
See here for more information and a list of available options:
https://github.com/neurostuff/NiMARE/blob/master/CONTRIBUTING.md#pull-requests
https://github.com/neurostuff/NiMARE/blob/main/CONTRIBUTING.md#pull-requests
-->

<!-- Please indicate after the # which issue you're closing with this PR.
Expand Down
55 changes: 55 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: "Lint Code"

on:
push:
branches:
- "main"
pull_request:
branches:
- '*'

concurrency:
group: environment-${{ github.ref }}
cancel-in-progress: true

jobs:
# Determine if tests should be run based on commit message.
check_skip:
runs-on: ubuntu-latest
outputs:
skip: ${{ steps.result_step.outputs.ci-skip }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- id: result_step
uses: mstachniuk/ci-skip@master
with:
commit-filter: '[skip ci];[ci skip];[skip github]'
commit-filter-separator: ';'

style_check:
needs: check_skip
if: ${{ needs.check_skip.outputs.skip == 'false' }}
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.7"]
name: Style check
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- name: 'Set up python'
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: 'Install NiMARE'
shell: bash {0}
run: pip install -e .[tests]
- name: 'Run linter'
shell: bash {0}
run: make lint
Loading