Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
on:
push:
branches: [main, release]
paths-ignore:
- '**.md'
- 'docs/**'
- 'LICENSE'
pull_request:
types: [unlabeled, opened, synchronize, reopened]
paths-ignore:
- '**.md'
- 'docs/**'
- 'LICENSE'
merge_group:
workflow_dispatch:

Expand Down Expand Up @@ -86,14 +94,6 @@ jobs:
run: cargo build --no-default-features --features ssl-openssl
if: runner.os == 'Linux'

# - name: Install tk-dev for tkinter build
# run: sudo apt-get update && sudo apt-get install -y tk-dev
# if: runner.os == 'Linux'

# - name: Test tkinter build
# run: cargo build --features tkinter
# if: runner.os == 'Linux'

- name: Test example projects
run: |
cargo run --manifest-path example_projects/barebone/Cargo.toml
Expand All @@ -110,6 +110,7 @@ jobs:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip:ci') }}
name: Ensure compilation on various targets
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
matrix:
include:
Expand Down Expand Up @@ -165,14 +166,6 @@ jobs:
ndk-version: r27
add-to-path: true

# - name: Prepare repository for redox compilation
# run: bash scripts/redox/uncomment-cargo.sh
# - name: Check compilation for Redox
# uses: coolreader18/redoxer-action@v1
# with:
# command: check
# args: --ignore-rust-version

- name: Check compilation
run: |
for target in ${{ join(matrix.targets, ' ') }}
Expand Down Expand Up @@ -237,10 +230,13 @@ jobs:
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
with:
save-if: ${{ github.ref == 'refs/heads/main' }}
shared-key: release-${{ matrix.os }}

- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: 'pip'
cache-dependency-path: extra_tests/requirements.txt

- name: Install macOS dependencies
uses: ./.github/actions/install-macos-deps
Expand Down Expand Up @@ -276,6 +272,7 @@ jobs:
RUSTPYTHON_SKIP_ENV_POLLUTERS: true

- name: run cpython tests to check if env polluters have stopped polluting
if: ${{ join(matrix.env_polluting_tests, '') != '' }}
shell: bash
run: |
IFS=' ' read -r -a target_array <<< "$TARGETS"
Expand Down Expand Up @@ -331,6 +328,7 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
checks: write
Expand Down Expand Up @@ -453,6 +451,8 @@ jobs:
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: 'pip'
cache-dependency-path: wasm/tests/requirements.txt

- run: python -m pip install -r requirements.txt
working-directory: ./wasm/tests
Expand Down
Loading