Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

build: free thread

build: free thread #35

Workflow file for this run

name: ci
on:
pull_request:
workflow_dispatch:
push:
branches:
- master
tags-ignore:
- "*"
concurrency:
group: '${{ github.workflow }}-${{ github.ref }}'
cancel-in-progress: true
jobs:
build-test:
strategy:
max-parallel: 5
matrix:
os: ["macos-12", "macos-13", "macos-14", "windows-latest", "ubuntu-latest"]
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
exclude:
- {os: macos-14, python-version: '3.8'}
- {os: macos-14, python-version: '3.9'}
runs-on: "${{ matrix.os }}"
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- run: python -m pip install -U pip
- run: pip install -e .
- run: pip install -r requirements.txt
- run: pytest -sv
build:
uses: ./.github/workflows/_wheels.yaml
test:
needs: [build]
strategy:
max-parallel: 5
fail-fast: false
matrix:
os: ["macos-12", "macos-13", "macos-14", "windows-latest", "ubuntu-latest"]
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
exclude:
- {os: macos-14, python-version: '3.8'}
- {os: macos-14, python-version: '3.9'}
runs-on: "${{ matrix.os }}"
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4.1.7
with:
name: wheel
path: dist
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- run: python -m pip install -U pip
- run: pip install bencode-c --no-index --find-link ./dist/
- run: pip install -r requirements.txt
- run: pytest -sv
check_dist:
name: Check dist
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: wheel
path: dist
- run: pipx run twine check --strict dist/*
audit:
name: Audit
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: '3.x'
cache: pip
cache-dependency-path: 'requirements.txt'
- run: pip install -r requirements.txt
- uses: actions/download-artifact@v4
with:
name: wheel
path: dist
- run: abi3audit --verbose dist/*.whl