diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e978134..6e885fb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: fail-fast: false matrix: version: - - '1.6' + - '1.7' - '1' # automatically expands to the latest stable 1.x release of Julia - nightly os: @@ -24,10 +24,6 @@ jobs: - windows-latest arch: - x64 - include: - - os: windows-latest - version: '1' - arch: x86 steps: - uses: actions/checkout@v2 - uses: julia-actions/setup-julia@v1 diff --git a/.github/workflows/invalidations.yml b/.github/workflows/invalidations.yml deleted file mode 100644 index af4c158..0000000 --- a/.github/workflows/invalidations.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Invalidations - -on: - pull_request: - -concurrency: - # Skip intermediate builds: always. - # Cancel intermediate builds: always. - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - evaluate: - # Only run on PRs to the default branch. - # In the PR trigger above branches can be specified only explicitly whereas this check should work for master, main, or any other default branch - if: github.base_ref == github.event.repository.default_branch - runs-on: ubuntu-latest - steps: - - uses: julia-actions/setup-julia@v1 - with: - version: '1' - - uses: actions/checkout@v3 - - uses: julia-actions/julia-buildpkg@v1 - - uses: julia-actions/julia-invalidations@v1 - id: invs_pr - - - uses: actions/checkout@v3 - with: - ref: ${{ github.event.repository.default_branch }} - - uses: julia-actions/julia-buildpkg@v1 - - uses: julia-actions/julia-invalidations@v1 - id: invs_default - - - name: Report invalidation counts - run: | - echo "Invalidations on default branch: ${{ steps.invs_default.outputs.total }} (${{ steps.invs_default.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY - echo "This branch: ${{ steps.invs_pr.outputs.total }} (${{ steps.invs_pr.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY - - name: Check if the PR does increase number of invalidations - if: steps.invs_pr.outputs.total > steps.invs_default.outputs.total - run: exit 1 \ No newline at end of file diff --git a/test/client.jl b/test/client.jl index 59513c7..107b989 100644 --- a/test/client.jl +++ b/test/client.jl @@ -125,11 +125,10 @@ @test isok(HTTP2.post("https://$httpbin/post"; body=UInt8['h','e','y'])) io = IOBuffer("hey"); seekstart(io) @test isok(HTTP2.post("https://$httpbin/post"; body=io)) - tmp = tempname() - open(f->write(f, "hey"), tmp, "w") - io = open(tmp) - @test isok(HTTP2.post("https://$httpbin/post"; body=io)) - close(io); rm(tmp) + mktemp() do (path, io) + write(io, "hey"); seekstart(io) + @test isok(HTTP2.post("https://$httpbin/post"; body=io)) + end f = Base.BufferStream() write(f, "hey") close(f)