Skip to content

Updated setuptools with adslib in wheel distribution and pyproject.toml #4

Updated setuptools with adslib in wheel distribution and pyproject.toml

Updated setuptools with adslib in wheel distribution and pyproject.toml #4

Workflow file for this run

#
# Test job to see how packaging looks like.
#
name: Build distributions
on: [push, pull_request]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: "true"
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: |
python -m pip install -U pip
pip install build
- run: python -m build --wheel -vv
- if: matrix.os == 'ubuntu-latest'
run: python -m build --sdist -vv
# We only need a single source distribution
- uses: actions/upload-artifact@v4
with:
name: dist-${{ matrix.os }}
retention-days: 1
path: dist
make_artifact:
name: Combine artifacts
needs: build_wheels
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
path: dist
merge-multiple: true
# Download all artifacts so far
- uses: actions/upload-artifact@v4
with:
name: package-all
path: dist
test_artifacts:
name: Test distributions
needs: make_artifacts

Check failure on line 58 in .github/workflows/packaging.yml

View workflow run for this annotation

GitHub Actions / Build distributions

Invalid workflow file

The workflow is not valid. .github/workflows/packaging.yml (Line: 58, Col: 12): Job 'test_artifacts' depends on unknown job 'make_artifacts'.
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
steps:
- uses: actions/download-artifact@v4
with:
name: package-all
path: dist
- uses: actions/setup-python@v5
with:
python-version: "3.12"
# Now install the package from the local wheels and try to use it:
- run: |
pip install pyads --no-index --find-links file://dist
python -c "import pyads; pyads.Connection(ams_net_id='127.0.0.1.1.1', ams_net_port=851)"