Skip to content

Commit

Permalink
ci(github): Testing GitHub actions with maturin.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronmussig committed Jul 16, 2024
1 parent 3273938 commit 6629165
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions .github/workflows/build-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,12 @@ jobs:
platform:
- runner: ubuntu-latest
target: x86_64
- runner: ubuntu-latest
target: x86
# - runner: ubuntu-latest
# target: aarch64
python-version:
- '3.8'
# - '3.9'
# - '3.10'
# - '3.11'
# - '3.12'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
steps:
- uses: actions/checkout@v4
# - uses: actions/download-artifact@v4
Expand All @@ -71,26 +67,25 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Build wheels
- name: Build wheel
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist -j 1 --all-features --strip --interpreter python${{ matrix.python-version }}
sccache: 'true'
manylinux: auto
- name: Test wheel
run: |
echo "((A:1,B:2):1,(C:1,(D:3,E:4):2):2);" > test.tree
python -m pip install dendropy
python -m pip install dist/*.whl --force-reinstall
python -c "from phylodm import PhyloDM; PhyloDM.load_from_newick_path('test.tree')"
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-linux-${{ matrix.platform.runner }}-${{ matrix.platform.target }}-${{ matrix.python-version }}
path: dist
retention-days: 1
- name: Test wheel
run: |
echo "((A:1,B:2):1,(C:1,(D:3,E:4):2):2);" > test.tree
python -m pip install dendropy
python -m pip install dist/*.whl
python -c "from phylodm import PhyloDM; PhyloDM.load_from_newick_path('test.tree')"

#
# build_python_wheels:
Expand Down

0 comments on commit 6629165

Please sign in to comment.