Skip to content

Commit ecd8955

Browse files
dstansbynormanrz
andauthored
De-duplicate GitHub actions config (#532)
* Trigger Build * De-duplicate GitHub actions config * Fix if statement * Add codecov token * Update codecov action --------- Co-authored-by: Norman Rzepka <[email protected]>
1 parent bc15f51 commit ecd8955

File tree

3 files changed

+13
-151
lines changed

3 files changed

+13
-151
lines changed

.github/workflows/ci-osx.yaml

Lines changed: 0 additions & 75 deletions
This file was deleted.

.github/workflows/ci-windows.yaml

Lines changed: 0 additions & 67 deletions
This file was deleted.

.github/workflows/ci-linux.yaml renamed to .github/workflows/ci.yaml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Linux CI
1+
name: Tests
22

33
on: [push, pull_request]
44

@@ -8,11 +8,12 @@ concurrency:
88

99
jobs:
1010
build:
11-
runs-on: ubuntu-latest
11+
runs-on: ${{ matrix.platform }}
1212
strategy:
1313
fail-fast: false
1414
matrix:
1515
python-version: ["3.10", "3.11", "3.12"]
16+
platform: [ubuntu-latest, windows-latest, macos-12]
1617

1718
steps:
1819
- name: Checkout source
@@ -41,6 +42,13 @@ jobs:
4142
c-compiler cxx-compiler
4243
python=${{matrix.python-version}} wheel pip
4344
45+
- name: Install clang
46+
shell: "bash -l {0}"
47+
if: ${{ matrix.platform }} == 'macos-12'
48+
run: |
49+
conda activate env
50+
conda install -y 'clang>=12.0.1,<17'
51+
4452
- name: Show info about `env` environment
4553
shell: "bash -l {0}"
4654
run: |
@@ -71,11 +79,7 @@ jobs:
7179
conda activate env
7280
pytest -v
7381
74-
- uses: codecov/codecov-action@v3
82+
- uses: codecov/codecov-action@v4
7583
with:
76-
#token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
77-
#files: ./coverage1.xml,./coverage2.xml # optional
78-
#flags: unittests # optional
79-
#name: codecov-umbrella # optional
80-
#fail_ci_if_error: true # optional (default = false)
81-
verbose: true # optional (default = false)
84+
token: ${{ secrets.CODECOV_TOKEN }}
85+
verbose: true

0 commit comments

Comments
 (0)