Skip to content

Commit

Permalink
Fix "Github Actions" configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
lycantropos committed Nov 1, 2024
1 parent edba20a commit 508b85a
Showing 1 changed file with 47 additions and 21 deletions.
68 changes: 47 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ on:

jobs:
test:
name: Test
name: 'Test'
runs-on: ${{ matrix.platform.os }}
strategy:
fail-fast: false
matrix:
python_version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
python_version: [ '3.11', '3.12' ]
platform: [
{
os: 'macos-latest',
Expand All @@ -39,31 +40,53 @@ jobs:
},
]
include:
- python_version: '3.8'
platform: {
os: 'macos-13',
python_architecture: 'x64',
rust_target: 'x86_64-apple-darwin'
}
- python_version: '3.9'
platform: {
os: 'macos-13',
python_architecture: 'x64',
rust_target: 'x86_64-apple-darwin'
}
- python_version: '3.10'
platform: {
os: 'macos-13',
python_architecture: 'x64',
rust_target: 'x86_64-apple-darwin'
}
- python_version: 'pypy-3.7'
platform: { os: 'macos-13', python_architecture: 'x64' }
- python_version: 'pypy-3.7'
platform: { os: 'ubuntu-latest', python_architecture: 'x64' }
- python_version: 'pypy-3.7'
platform: { os: 'windows-latest', python_architecture: 'x64' }
- python_version: 'pypy-3.8'
platform: { os: 'macos-latest', python_architecture: 'x64' }
platform: { os: 'macos-13', python_architecture: 'x64' }
- python_version: 'pypy-3.8'
platform: { os: 'ubuntu-latest', python_architecture: 'x64' }
- python_version: 'pypy-3.8'
platform: { os: 'windows-latest', python_architecture: 'x64' }
- python_version: 'pypy-3.9'
platform: { os: 'macos-latest', python_architecture: 'x64' }
platform: { os: 'macos-13', python_architecture: 'x64' }
- python_version: 'pypy-3.9'
platform: { os: 'ubuntu-latest', python_architecture: 'x64' }
- python_version: 'pypy-3.9'
platform: { os: 'windows-latest', python_architecture: 'x64' }
- python_version: 'pypy-3.10'
platform: { os: 'macos-latest', python_architecture: 'x64' }
platform: { os: 'macos-13', python_architecture: 'x64' }
- python_version: 'pypy-3.10'
platform: { os: 'ubuntu-latest', python_architecture: 'x64' }
- python_version: 'pypy-3.10'
platform: { os: 'windows-latest', python_architecture: 'x64' }
steps:
- name: 'Checkout'
uses: actions/checkout@v3
with:
submodules: true
uses: actions/checkout@v4
- name: 'Setup Python'
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
architecture: ${{ matrix.platform.python_architecture }}
Expand Down Expand Up @@ -159,7 +182,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: 'Setup Rust'
uses: dtolnay/rust-toolchain@stable
- name: 'Upload'
Expand All @@ -173,11 +196,9 @@ jobs:
needs: pre-deploy
steps:
- name: 'Checkout'
uses: actions/checkout@v3
with:
submodules: true
uses: actions/checkout@v4
- name: 'Setup Python'
uses: actions/setup-python@v4
uses: actions/setup-python@v5
- name: 'Install packaging tools'
run: python -m pip install -U build
- name: 'Build sdist'
Expand All @@ -191,8 +212,9 @@ jobs:
build-wheels:
name: 'Build wheels'
runs-on: ${{ matrix.platform.os }}
needs: pre-deploy
# needs: pre-deploy
strategy:
fail-fast: false
matrix:
python_tag: [ 'cp38', 'cp39', 'cp310', 'cp311', 'cp312' ]
platform: [
Expand Down Expand Up @@ -283,11 +305,9 @@ jobs:
]
steps:
- name: 'Checkout'
uses: actions/checkout@v3
with:
submodules: true
uses: actions/checkout@v4
- name: 'Setup Python'
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
architecture: ${{ matrix.platform.python_architecture }}
- name: 'Setup Rust'
Expand Down Expand Up @@ -347,6 +367,12 @@ jobs:
},
]
include:
- python_version: 'pypy-3.7'
platform: { os: 'macos-latest', python_architecture: 'x64' }
- python_version: 'pypy-3.7'
platform: { os: 'ubuntu-latest', python_architecture: 'x64' }
- python_version: 'pypy-3.7'
platform: { os: 'windows-latest', python_architecture: 'x64' }
- python_version: 'pypy-3.8'
platform: { os: 'macos-latest', python_architecture: 'x64' }
- python_version: 'pypy-3.8'
Expand All @@ -367,7 +393,7 @@ jobs:
platform: { os: 'windows-latest', python_architecture: 'x64' }
steps:
- name: 'Setup Python'
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
architecture: ${{ matrix.platform.python_architecture }}
Expand All @@ -391,7 +417,7 @@ jobs:
name: dist
path: dist
- name: 'Upload'
uses: pypa/[email protected].10
uses: pypa/[email protected].6
with:
packages_dir: dist
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 508b85a

Please sign in to comment.