docker-pyo3 0.3.2

Python bindings to the docker-api-rs crate
Documentation
name: "Tests"

on:
  push:
    branches: ["*"]

concurrency:
  group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
  cancel-in-progress: true

env:
  CARGO_INCREMENTAL: 0
  CARGO_NET_RETRY: 10
  RUSTUP_MAX_RETRIES: 10
  DOCKER_CLI_EXPERIMENTAL: enabled



jobs:
  cargo-build:
    name: "cargo build"
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: dtolnay/rust-toolchain@stable
      - uses: Swatinem/rust-cache@v2
      - run: cargo build --all

  cargo-fmt:
    name: "cargo fmt"
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: dtolnay/rust-toolchain@stable
        with:
          components: rustfmt
      - run: cargo fmt --all --check

  docker-pyo3-tests-linux:
    name: "docker-pyo3 run-tests linux"
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: dtolnay/rust-toolchain@stable
      - uses: Swatinem/rust-cache@v2
      - uses: actions/setup-python@v4
        with:
          python-version: "3.11"
      - run: docker pull busybox
      - run: pip install maturin pytest
      - run: maturin build
      - run: pip install .
      - run: pytest -svv

  # docker-pyo3-tests-windows:
  #   name: "docker-pyo3 run-tests windows"
  #   runs-on: windows-latest
  #   steps:
  #     - uses: actions/checkout@v3
  #     - uses: actions-rs/toolchain@v1
  #       with:
  #         profile: minimal
  #         toolchain: 1.65.0
  #         override: true
  #     - uses: Swatinem/rust-cache@v1
  #     - uses: actions/setup-python@v4
  #       with:
  #         python-version: "3.11"
  #     - run: docker pull e2eteam/busybox
  #     - run: docker tag e2eteam/busybox busybox
  #     - run: pip install maturin pytest 
  #     - run: maturin build 
  #     - run: pip install .
  #     - run: pytest -svv 

  typos:
    name: Spell Check with Typos
    runs-on: ubuntu-latest
    steps:
    - name: Checkout Actions Repository
      uses: actions/checkout@v2
    - name: Spell Check
      uses: crate-ci/typos@master
      with:
        files: ./src
    - name: Spell Check
      uses: crate-ci/typos@master
      with:
        files: ./python
    - name: Spell Check
      uses: crate-ci/typos@master
      with:
        files: ./py_test