Skip to content

Commit 7073bb5

Browse files
committed
CI: test macOS
1 parent 99ad371 commit 7073bb5

File tree

6 files changed

+184
-141
lines changed

6 files changed

+184
-141
lines changed

.github/workflows/linux.yml

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

33
on: [ push, pull_request ]
44

@@ -13,20 +13,23 @@ concurrency:
1313
cancel-in-progress: true
1414

1515
jobs:
16-
gcc_x86_64_linux:
17-
name: GCC X86_64 Linux
18-
runs-on: ubuntu-22.04
16+
tests:
17+
name: ${{ matrix.environment }} ${{ matrix.runs-on }}
18+
runs-on: ${{ matrix.runs-on }}
1919
env:
2020
XSREF_TABLES_PATH: "${{ github.workspace }}/xsref/tables"
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
environment: [tests-ci]
25+
runs-on: [ubuntu-latest, macos-latest]
2126

2227
steps:
2328
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2429
- uses: prefix-dev/setup-pixi@92815284c57faa15cd896c4d5cfb2d59f32dc43d # v0.8.3
2530
with:
2631
pixi-version: v0.44.0
2732
cache: true
33+
environments: ${{ matrix.environment }}
2834
- name: Run tests
29-
run: |
30-
pixi run configure-tests
31-
pixi run build-only -j2
32-
pixi run tests -j2
35+
run: pixi run tests-ci

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,6 @@ build/
4343

4444
# xsref
4545
xsref/
46+
47+
# IDEs
48+
.vscode

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# xsf
2-
Special function implementations
2+
Special function implementations.
3+
4+
See https://github.com/scipy/xsf/issues/1 for context.
35

46
## Tests
57

@@ -9,16 +11,19 @@ To run the tests:
911
- [install Pixi](https://pixi.sh/latest/#installation)
1012
- `pixi run tests`
1113

12-
For subsequent test runs, you can skip re-cloning [`xsref`](https://github.com/scipy/xsref) with:
14+
You can trigger a rebuild inbetween test runs with:
1315

1416
```shell
15-
pixi run --skip-deps tests
17+
pixi run build-tests
1618
```
1719

18-
You can trigger a rebuild inbetween test runs with:
20+
For subsequent test runs, to skip re-cloning [`xsref`](https://github.com/scipy/xsref) or to control parallelism for individual commands, you can use:
1921

2022
```shell
21-
pixi run build-tests
23+
pixi run clone-xsf
24+
pixi run configure-tests
25+
pixi run build-only -j8
26+
pixi run --skip-deps tests -j2
2227
```
2328

2429
> [!NOTE]

0 commit comments

Comments
 (0)