From a686f3fad018cb3bc2991af5511b060858472795 Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Wed, 21 Dec 2022 12:32:02 +0000 Subject: [PATCH] comment out unneeded tests --- .github/workflows/check.yml | 83 --------------------- .github/workflows/test.yml | 142 ++++++++++++++++++------------------ 2 files changed, 71 insertions(+), 154 deletions(-) delete mode 100644 .github/workflows/check.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml deleted file mode 100644 index ab248876..00000000 --- a/.github/workflows/check.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: check - -on: - push: - branches: - - main - pull_request: - -jobs: - # completely stolen from https://github.com/jonhoo/inferno/blob/8c0a28cab440fd00cd42cfbca403dde895cc67e3/.github/workflows/check.yml#L86-L107 - msrv: - runs-on: ubuntu-latest - # we use a matrix here just because env can't be used in job names - # https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability - strategy: - matrix: - msrv: [1.58.0] - name: ubuntu / ${{ matrix.msrv }} - steps: - - name: Checkout sources - uses: actions/checkout@v1 - - - name: Install ubuntu dependencies - run: | - sudo apt-get update && sudo apt-get install --no-install-recommends -y \ - llvm-dev \ - libcfitsio-dev \ - pkg-config \ - libssl-dev \ - python3 - - - name: "Install toolchain: ${{ matrix.msrv }}" - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: ${{matrix.msrv}} - defualt: true - components: rustfmt, clippy - - - name: cargo +${{ matrix.msrv }} check - uses: actions-rs/cargo@v1 - with: - command: check - - minimal: - runs-on: ubuntu-latest - name: minimal versions check - steps: - - name: Checkout sources - uses: actions/checkout@v1 - - - name: Install ubuntu dependencies - run: | - sudo apt-get update && sudo apt-get install --no-install-recommends -y \ - llvm-dev \ - libcfitsio-dev \ - pkg-config \ - libssl-dev \ - python3 - - - name: Install toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - override: true - components: rustfmt, clippy - - - name: Install nightly for -Zminimal-versions - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: nightly - - - name: cargo update -Zminimal-versions - uses: actions-rs/cargo@v1 - with: - command: update - toolchain: nightly - args: -Zminimal-versions - - - name: Test the code - run: python3 ./bin/test --rust-version stable --test all diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c318aa52..71c4e806 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,87 +7,87 @@ on: pull_request: jobs: - ci-test: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - include: - - rust: stable - - rust: beta - steps: - - name: Checkout sources - uses: actions/checkout@v1 + # ci-test: + # runs-on: ubuntu-latest + # strategy: + # fail-fast: false + # matrix: + # include: + # - rust: stable + # - rust: beta + # steps: + # - name: Checkout sources + # uses: actions/checkout@v1 - - name: Install ubuntu dependencies - run: | - sudo apt-get update && sudo apt-get install --no-install-recommends -y \ - llvm-dev \ - libcfitsio-dev \ - pkg-config \ - libssl-dev \ - python3 + # - name: Install ubuntu dependencies + # run: | + # sudo apt-get update && sudo apt-get install --no-install-recommends -y \ + # llvm-dev \ + # libcfitsio-dev \ + # pkg-config \ + # libssl-dev \ + # python3 - - name: Install toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: ${{matrix.rust}} - override: true - components: rustfmt, clippy + # - name: Install toolchain + # uses: actions-rs/toolchain@v1 + # with: + # profile: minimal + # toolchain: ${{matrix.rust}} + # override: true + # components: rustfmt, clippy - - name: Test the code - run: python3 ./bin/test --rust-version ${{matrix.rust}} --test all + # - name: Test the code + # run: python3 ./bin/test --rust-version ${{matrix.rust}} --test all - macos-test: - runs-on: macos-latest - strategy: - fail-fast: false - matrix: - include: - - rust: stable - - rust: beta - steps: - - name: Checkout sources - uses: actions/checkout@v1 + # macos-test: + # runs-on: macos-latest + # strategy: + # fail-fast: false + # matrix: + # include: + # - rust: stable + # - rust: beta + # steps: + # - name: Checkout sources + # uses: actions/checkout@v1 - - name: Install dependencies - run: | - brew install cfitsio python3 + # - name: Install dependencies + # run: | + # brew install cfitsio python3 - - name: Install toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: ${{matrix.rust}} - override: true - components: rustfmt, clippy + # - name: Install toolchain + # uses: actions-rs/toolchain@v1 + # with: + # profile: minimal + # toolchain: ${{matrix.rust}} + # override: true + # components: rustfmt, clippy - - name: Test the code - run: python3 ./bin/test --rust-version ${{matrix.rust}} --test all + # - name: Test the code + # run: python3 ./bin/test --rust-version ${{matrix.rust}} --test all - linux-armv7: - runs-on: ubuntu-latest - strategy: - fail-fast: true - steps: - - name: Checkout sources - uses: actions/checkout@v1 + # linux-armv7: + # runs-on: ubuntu-latest + # strategy: + # fail-fast: true + # steps: + # - name: Checkout sources + # uses: actions/checkout@v1 - - name: Install toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - override: true - target: armv7-unknown-linux-gnueabihf + # - name: Install toolchain + # uses: actions-rs/toolchain@v1 + # with: + # toolchain: stable + # profile: minimal + # override: true + # target: armv7-unknown-linux-gnueabihf - - name: Test the code - uses: actions-rs/cargo@v1 - with: - use-cross: true - command: test - args: --target armv7-unknown-linux-gnueabihf --manifest-path fitsio/Cargo.toml + # - name: Test the code + # uses: actions-rs/cargo@v1 + # with: + # use-cross: true + # command: test + # args: --target armv7-unknown-linux-gnueabihf --manifest-path fitsio/Cargo.toml windows-test: runs-on: windows-latest