Skip to content

Commit

Permalink
test py3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Wigley committed Dec 6, 2021
1 parent 5a9d121 commit e51f549
Showing 1 changed file with 9 additions and 32 deletions.
41 changes: 9 additions & 32 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ on:
description: "Publish to PyPI (true/false)"
required: true
default: "false"
pull_request:

jobs:
python-macos:
name: Build macos py${{ matrix.python-version }}
runs-on: macos-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
Expand All @@ -30,7 +31,7 @@ jobs:
uses: messense/maturin-action@v1
with:
target: x86_64
args: -i python${{ matrix.python-version }} --release --out dist ${{ matrix.python-version != 3.9 && '--no-sdist' || '' }}
args: -i python${{ matrix.python-version }} --release --out dist ${{ matrix.python-version != '3.9' && '--no-sdist' || '' }}
- name: Build wheels - universal2
uses: messense/maturin-action@v1
env:
Expand All @@ -46,28 +47,17 @@ jobs:
path: dist

python-windows:
name: Build windows ${{ matrix.target }}
name: Build windows ${{ matrix.target }} py${{ matrix.python-version }}
runs-on: windows-latest
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
target: [x64, x86]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
architecture: ${{ matrix.target }}
- uses: actions/setup-python@v2
with:
python-version: 3.8
architecture: ${{ matrix.target }}
- uses: actions/setup-python@v2
with:
python-version: 3.7
architecture: ${{ matrix.target }}
- uses: actions/setup-python@v2
with:
python-version: 3.6
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.target }}
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
Expand All @@ -79,11 +69,7 @@ jobs:
uses: messense/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --no-sdist
- name: Install built wheel
run: |
pip install dbt_extractor --no-index --find-links dist --force-reinstall
python -c "import dbt_extractor"
args: -i python${{ matrix.python-version }} --release --out dist --no-sdist
- name: Show wheels generated
run: ls -lh dist
shell: bash
Expand All @@ -101,10 +87,7 @@ jobs:
target: [x86_64, i686]
steps:
- uses: actions/checkout@v2
# the native python is only used to test that the package can be installed
- uses: actions/setup-python@v2
with:
python-version: 3.9
# supported python versions
# https://github.com/messense/maturin-action/blob/51478586be5dfb16a569cb6bbec182fba9f13f79/src/index.ts#L245
- name: Build Wheels
Expand All @@ -113,11 +96,6 @@ jobs:
target: ${{ matrix.target }}
manylinux: auto
args: --release --out dist --no-sdist
- name: Install built wheel
if: matrix.target == 'x86_64'
run: |
pip install dbt_extractor --no-index --find-links dist --force-reinstall
python -c "import dbt_extractor"
- name: Show wheels generated
run: ls -lh dist/
- name: Upload wheels
Expand All @@ -143,6 +121,7 @@ jobs:
PYO3_CROSS_LIB_DIR: /opt/python/${{ matrix.python.abi }}/lib
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Build Wheels
uses: messense/maturin-action@v1
with:
Expand All @@ -164,7 +143,7 @@ jobs:
apt-get install -y --no-install-recommends python3 python3-pip software-properties-common
add-apt-repository ppa:deadsnakes/ppa
apt-get update
apt-get install -y python3.6 python3.7 python3.9
apt-get install -y python3.6 python3.7 python3.8 python3.9
run: |
ls -lrth /artifacts
PYTHON=python${{ matrix.python.version }}
Expand Down Expand Up @@ -193,8 +172,6 @@ jobs:
- name: Show wheels generated
run: ls -lh ./
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Publish to PyPi
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
Expand Down

0 comments on commit e51f549

Please sign in to comment.