diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8d0c4a3..04a44a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,6 +21,9 @@ jobs: timeout-minutes: 60 steps: - uses: actions/checkout@v3 + - uses: actions/setup-python@v5 + with: + python-version: 3.8 - uses: r7kamura/rust-problem-matchers@v1.1.0 - run: cargo --version --verbose - uses: Swatinem/rust-cache@v2 @@ -39,17 +42,23 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - + - uses: actions/setup-python@v5 + with: + python-version: 3.8 - uses: r7kamura/rust-problem-matchers@v1.1.0 - run: cargo --version --verbose - name: "Clippy" run: cargo clippy --all --all-features + rustfmt: name: "Formatting" runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: actions/setup-python@v5 + with: + python-version: 3.8 - uses: r7kamura/rust-problem-matchers@v1.1.0 - name: "rustfmt" run: cargo fmt --all -- --check @@ -59,7 +68,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - + - uses: actions/setup-python@v5 + with: + python-version: 3.8 - uses: r7kamura/rust-problem-matchers@v1.1.0 - run: cargo --version --verbose - uses: Swatinem/rust-cache@v2 @@ -78,6 +89,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: actions/setup-python@v5 + with: + python-version: 3.8 - uses: actions-rs/toolchain@v1 with: profile: minimal