Skip to content

Commit

Permalink
De-duplicate GitHub actions config (zarr-developers#532)
Browse files Browse the repository at this point in the history
* Trigger Build

* De-duplicate GitHub actions config

* Fix if statement

* Add codecov token

* Update codecov action

---------

Co-authored-by: Norman Rzepka <[email protected]>
  • Loading branch information
2 people authored and DimitriPapadopoulos committed Jun 19, 2024
1 parent e242c38 commit 7e25a25
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 151 deletions.
75 changes: 0 additions & 75 deletions .github/workflows/ci-osx.yaml

This file was deleted.

67 changes: 0 additions & 67 deletions .github/workflows/ci-windows.yaml

This file was deleted.

22 changes: 13 additions & 9 deletions .github/workflows/ci-linux.yaml → .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Linux CI
name: Tests

on: [push, pull_request]

Expand All @@ -8,11 +8,12 @@ concurrency:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
platform: [ubuntu-latest, windows-latest, macos-12]

steps:
- name: Checkout source
Expand Down Expand Up @@ -41,6 +42,13 @@ jobs:
c-compiler cxx-compiler
python=${{matrix.python-version}} wheel pip
- name: Install clang
shell: "bash -l {0}"
if: ${{ matrix.platform }} == 'macos-12'
run: |
conda activate env
conda install -y 'clang>=12.0.1,<17'
- name: Show info about `env` environment
shell: "bash -l {0}"
run: |
Expand Down Expand Up @@ -71,11 +79,7 @@ jobs:
conda activate env
pytest -v
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
with:
#token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
#files: ./coverage1.xml,./coverage2.xml # optional
#flags: unittests # optional
#name: codecov-umbrella # optional
#fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true

0 comments on commit 7e25a25

Please sign in to comment.