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

just doing some testing github actions on PRs #540

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: push
on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v5

- name: Install package
run: python -m pip install .

- name: Install coverage
run: python -m pip install coverage

- name: Unit tests
run: tests/run_tests.sh -c

- name: Coveralls
uses: coverallsapp/github-action@v2

coveralls_finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: AndreMiras/coveralls-python-action@develop
with:
parallel-finished: true
95 changes: 13 additions & 82 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Build
on:
push:
branches:
- master
- master
pull_request:
branches:
- master
- master
release:
types: [created]
workflow_dispatch:
Expand All @@ -24,97 +24,23 @@ jobs:

# Windows 64-bit
- os: windows-latest
python: '3.8'
cibw_python: 38
platform_id: win_amd64
- os: windows-latest
python: '3.9'
cibw_python: 39
platform_id: win_amd64
- os: windows-latest
python: '3.10'
cibw_python: 310
platform_id: win_amd64
- os: windows-latest
python: '3.11'
cibw_python: 311
platform_id: win_amd64
- os: windows-latest
python: '3.12'
python: "3.12"
cibw_python: 312
platform_id: win_amd64

# Linux 64-bit
- os: ubuntu-latest
python: '3.8'
cibw_python: 38
platform_id: manylinux_x86_64
- os: ubuntu-latest
python: '3.9'
cibw_python: 39
platform_id: manylinux_x86_64
- os: ubuntu-latest
python: '3.10'
cibw_python: 310
platform_id: manylinux_x86_64
- os: ubuntu-latest
python: '3.11'
cibw_python: 311
platform_id: manylinux_x86_64
- os: ubuntu-latest
python: '3.12'
python: "3.12"
cibw_python: 312
platform_id: manylinux_x86_64

# macOS on Intel 64-bit
- os: macos-latest
python: '3.8'
cibw_python: 38
arch: x86_64
platform_id: macosx_x86_64
- os: macos-latest
python: '3.9'
cibw_python: 39
arch: x86_64
platform_id: macosx_x86_64
- os: macos-latest
python: '3.10'
cibw_python: 310
arch: x86_64
platform_id: macosx_x86_64
- os: macos-latest
python: '3.11'
cibw_python: 311
arch: x86_64
platform_id: macosx_x86_64
- os: macos-latest
python: '3.12'
python: "3.12"
cibw_python: 312
arch: x86_64
platform_id: macosx_x86_64

# macOS on Apple M1 64-bit
# - os: macos-latest
# python: '3.8'
# cibw_python: 38
# arch: arm64
# platform_id: macosx_arm64
# - os: macos-latest
# python: '3.9'
# cibw_python: 39
# arch: arm64
# platform_id: macosx_arm64
# - os: macos-latest
# python: '3.10'
# cibw_python: 310
# arch: arm64
# platform_id: macosx_arm64
# - os: macos-latest
# python: '3.11'
# cibw_python: 311
# arch: arm64
# platform_id: macosx_arm64

steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -177,13 +103,18 @@ jobs:
if: ${{ ! startsWith(matrix.os, 'windows-') }}
run: |
python -m pip install wheelhouse/cp${{ matrix.cibw_python }}-${{matrix.platform_id }}/*.whl
tests/run_tests.sh
python -m pip install coverage
tests/run_tests.sh -c

- name: Install and test (Windows)
if: startsWith(matrix.os, 'windows-')
run: |
python -m pip install --find-links=.\wheelhouse\cp${{ matrix.cibw_python }}-${{matrix.platform_id }} antspyx
tests\run_tests.ps1
python -m pip install coverage
tests/run_tests.sh -c

- name: Coveralls
uses: coverallsapp/github-action@v2

- uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -214,7 +145,7 @@ jobs:
echo $wheeldir
mv $mywhl $wheeldir
rm -r -f $extrawheeldir $wheeldirx

- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
if: ${{ (github.event_name == 'push') && (runner.os == 'Linux') }}
Expand Down
2 changes: 0 additions & 2 deletions ants/contrib/bids/__init__.py

This file was deleted.

107 changes: 0 additions & 107 deletions ants/contrib/bids/cohort.py

This file was deleted.

Loading