Repository: dusk-network/bls12_381 (language: rust)

Issue:
Port dusk-bls12_381 CI from Travis to Github Actions following the standard



Discussion / hints:

Fix patch:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
deleted file mode 100644
index 1388989f..00000000
--- a/.github/workflows/ci.yml
+++ /dev/null
@@ -1,105 +0,0 @@
-name: CI checks
-
-on: [push, pull_request]
-
-jobs:
-  lint:
-    name: Lint
-    runs-on: ubuntu-latest
-
-    steps:
-      - uses: actions/checkout@v1
-      - uses: actions-rs/toolchain@v1
-        with:
-          toolchain: 1.36.0
-          override: true
-
-      # Ensure all code has been formatted with rustfmt
-      - run: rustup component add rustfmt
-      - name: Check formatting
-        uses: actions-rs/cargo@v1
-        with:
-          command: fmt
-          args: -- --check --color always
-
-  test:
-    name: Test on ${{ matrix.os }}
-    runs-on: ${{ matrix.os }}
-    strategy:
-      matrix:
-        os: [ubuntu-latest, windows-latest, macOS-latest]
-
-    steps:
-      - uses: actions/checkout@v1
-      - uses: actions-rs/toolchain@v1
-        with:
-          toolchain: 1.36.0
-          override: true
-      - name: cargo fetch
-        uses: actions-rs/cargo@v1
-        with:
-          command: fetch
-      - name: Build tests
-        uses: actions-rs/cargo@v1
-        with:
-          command: build
-          args: --verbose --release --tests --features endo
-      - name: Run tests
-        uses: actions-rs/cargo@v1
-        with:
-          command: test
-          args: --verbose --release --features endo
-      - name: Build tests (no endomorphism)
-        uses: actions-rs/cargo@v1
-        with:
-          command: build
-          args: --verbose --release --tests
-      - name: Run tests (no endomorphism)
-        uses: actions-rs/cargo@v1
-        with:
-          command: test
-          args: --verbose --release
-
-  no-std:
-    name: Check no-std compatibility
-    runs-on: ubuntu-latest
-
-    steps:
-      - uses: actions/checkout@v1
-      - uses: actions-rs/toolchain@v1
-        with:
-          toolchain: 1.36.0
-          override: true
-      - run: rustup target add thumbv6m-none-eabi
-      - name: cargo fetch
-        uses: actions-rs/cargo@v1
-        with:
-          command: fetch
-      - name: Build
-        uses: actions-rs/cargo@v1
-        with:
-          command: build
-          args: --verbose --target thumbv6m-none-eabi --no-default-features --features groups,pairings
-
-  doc-links:
-    name: Nightly lint
-    runs-on: ubuntu-latest
-
-    steps:
-      - uses: actions/checkout@v1
-      - uses: actions-rs/toolchain@v1
-        with:
-          toolchain: nightly
-          override: true
-      - name: cargo fetch
-        uses: actions-rs/cargo@v1
-        with:
-          command: fetch
-
-      # Ensure intra-documentation links all resolve correctly
-      # Requires #![deny(intra_doc_link_resolution_failure)] in crate.
-      - name: Check intra-doc links
-        uses: actions-rs/cargo@v1
-        with:
-          command: doc
-          args: --document-private-items
diff --git a/.github/workflows/dusk_ci.yml b/.github/workflows/dusk_ci.yml
new file mode 100644
index 00000000..7337909a
--- /dev/null
+++ b/.github/workflows/dusk_ci.yml
@@ -0,0 +1,65 @@
+on: [pull_request]
+
+name: Continuous integration
+
+jobs:
+  check:
+    name: Check
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - uses: actions-rs/toolchain@v1
+        with:
+          profile: minimal
+          toolchain: stable
+          override: true
+      - uses: actions-rs/cargo@v1
+        with:
+          command: check
+
+  test_stable:
+    name: Stable tests
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - uses: actions-rs/toolchain@v1
+        with:
+          profile: minimal
+          toolchain: stable
+          override: true
+      - uses: actions-rs/cargo@v1
+        with:
+          command: test
+          args: --release
+
+  test_nightly:
+      name: Nightly tests
+      runs-on: ubuntu-latest
+      steps:
+        - uses: actions/checkout@v2
+        - uses: actions-rs/toolchain@v1
+          with:
+            profile: minimal
+            toolchain: nightly
+            override: true
+        - uses: actions-rs/cargo@v1
+          with:
+            command: test
+            args: --release
+
+
+  fmt:
+    name: Rustfmt
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - uses: actions-rs/toolchain@v1
+        with:
+          profile: minimal
+          toolchain: stable
+          override: true
+      - run: rustup component add rustfmt
+      - uses: actions-rs/cargo@v1
+        with:
+          command: fmt
+          args: --all -- --check
diff --git a/benches/groups.rs b/benches/groups.rs
index 87c80d02..c97755cf 100644
--- a/benches/groups.rs
+++ b/benches/groups.rs
@@ -1,8 +1,8 @@
 #[macro_use]
 extern crate criterion;
 
-extern crate bls12_381;
-use bls12_381::*;
+extern crate dusk_bls12_381;
+use dusk_bls12_381::*;
 
 use criterion::{black_box, Criterion};
 
diff --git a/src/notes/design.rs b/src/notes/design.rs
index 6dac9ddc..69b772d7 100644
--- a/src/notes/design.rs
+++ b/src/notes/design.rs
@@ -18,7 +18,7 @@
 //!
 //! This can be derived using the following sage script:
 //!
-//! ```no_run
+//! ```python
 //! param = -0xd201000000010000
 //! def r(x):
 //!     return (x**4) - (x**2) + 1


Test patch: