diff --git a/.github/workflows/ci-linux.yaml b/.github/workflows/ci-linux.yaml new file mode 100644 index 00000000..4a45cbba --- /dev/null +++ b/.github/workflows/ci-linux.yaml @@ -0,0 +1,47 @@ +name: CI Linux + +on: + - push + - pull_request + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.9", "3.10", "3.11"] + + steps: + - name: Install apt packages + run: | + sudo apt-get update + sudo apt-get install xvfb x11-utils libxkbcommon-x11-0 libxcb-icccm4 \ + libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 \ + libxcb-xinerama0 libxcb-xfixes0 xdotool + + - uses: actions/checkout@v3 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pdm nox + + - name: Test with nox + run: | + nox -s test_without_fft_and_pythran + mv .coverage/coverage.xml coverage_without_fft_and_pythran.xml + nox -s test_with_fft_and_pythran + mv .coverage/coverage.xml coverage_with_fft_and_pythran.xml + + - name: Upload coverage to codecov + if: ${{ success() }} + uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: false # optional (default = false) + verbose: true # optional (default = false) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index f1bb32c7..00000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,51 +0,0 @@ -name: ci-linux - -on: - - push - -env: - FORCE_COLOR: 1 - -jobs: - tests: - runs-on: ubuntu-latest - strategy: - max-parallel: 5 - matrix: - python-version: ["3.9", "3.10"] - - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Install apt packages - run: | - sudo apt-get update - sudo apt-get install xvfb x11-utils libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 xdotool - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - cache: "pip" - cache-dependency-path: "requirements/test.txt" - - - name: Verify Python environment - run: | - pip list - pip cache list - pip check - - - name: Install dependencies - run: | - python -m pip install --upgrade pip nox - - - name: Run tests - run: | - xvfb-run --auto-servernum nox --session tests-cov -- -v --cov-report=xml - - - name: Upload coverage to codecov - if: ${{ success() }} - uses: codecov/codecov-action@v3 diff --git a/README.md b/README.md index 4b02e955..2b3d360d 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ FluidImage [![Documentation status](https://readthedocs.org/projects/fluidimage/badge/?version=latest)](http://fluidimage.readthedocs.org) [![Code coverage](https://codecov.io/gh/fluiddyn/fluidimage/branch/branch%2Fdefault/graph/badge.svg)](https://codecov.io/gh/fluiddyn/fluidimage/branch/branch%2Fdefault/) [![Heptapod CI](https://foss.heptapod.net/fluiddyn/fluidimage/badges/branch/default/pipeline.svg)](https://foss.heptapod.net/fluiddyn/fluidimage/-/pipelines) -[![Github Actions](https://github.com/fluiddyn/fluidimage/actions/workflows/ci.yml/badge.svg?branch=branch/default)](https://github.com/fluiddyn/fluidimage/actions) +[![Github Actions](https://github.com/fluiddyn/fluidimage/actions/workflows/ci-linux.yml/badge.svg?branch=branch/default)](https://github.com/fluiddyn/fluidimage/actions) FluidImage is a libre Python framework for scientific processing of large series of images.