Skip to content

Commit 7888cf2

Browse files
authored
Merge pull request #301 from apple/github-actions-support
[CI] Add support for GitHub Actions
2 parents c4cc31e + 1d23717 commit 7888cf2

File tree

4 files changed

+22
-3
lines changed

4 files changed

+22
-3
lines changed

.github/workflows/pull_request.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Pull request
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize]
6+
7+
jobs:
8+
tests:
9+
name: Test
10+
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
11+
soundness:
12+
name: Soundness
13+
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
14+
with:
15+
license_header_check_project_name: "Swift Numerics"
16+
# https://github.com/apple/swift-numerics/issues/303
17+
license_header_check_enabled: false
18+
# https://github.com/apple/swift-numerics/issues/302
19+
format_check_enabled: false

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Swift Numerics uses GitHub issues to track bugs and features. We use pull reques
8484
1. Raise an issue with the [new module] tag.
8585
2. Raise a PR with an implementation sketch.
8686
3. Once you have some consensus, ask an admin to create a feature branch against which PRs can be raised.
87-
4. When the design has stabilized and is functional enough to be useful, raise a PR to merge the new module to master.
87+
4. When the design has stabilized and is functional enough to be useful, raise a PR to merge the new module to main.
8888

8989
### How to propose a new feature for an existing module
9090

Sources/RealModule/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,5 @@ Not having this protocol is a significant missing feature for numerical computin
7373

7474
[ErrorFunction]: https://en.wikipedia.org/wiki/Error_function
7575
[GammaFunction]: https://en.wikipedia.org/wiki/Gamma_function
76-
[SE-0246]: https://github.com/apple/swift-evolution/blob/master/proposals/0246-mathable.md
76+
[SE-0246]: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0246-mathable.md
7777
[Sigmoid]: https://en.wikipedia.org/wiki/Sigmoid_function

Tests/RealTests/RelaxedArithmeticTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ final class RelaxedArithmeticTests: XCTestCase {
102102
// Summing all values in an array can be associated however we want, but
103103
// has to satisfy the usual error bound of 0.5 * sum.ulp * numberOfElements.
104104
// We don't have a golden reference, but we can compare two sums with twice
105-
// the bound for a sanity check.
105+
// the bound for a sanity check. // ignore-unacceptable-language
106106
let array = (0 ..< 128).map { _ in T.random(in: 1 ..< 2) }
107107
var ref = strictSum(array)
108108
var tst = relaxedSum(array)

0 commit comments

Comments
 (0)