build.yaml 1004 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. name: build
  2. on:
  3. push:
  4. paths:
  5. - '.github/workflows/build.yaml'
  6. - '.github/build-requirements.txt'
  7. - 'pyproject.toml'
  8. - 'setup.cfg'
  9. - 'test/ref/**'
  10. - 'cmds/**'
  11. - '**.py'
  12. - '**.c'
  13. jobs:
  14. test:
  15. runs-on: ubuntu-latest
  16. strategy:
  17. matrix:
  18. python-version: ["3.9","3.10","3.11","3.12"]
  19. steps:
  20. - uses: actions/checkout@v4
  21. - name: Install Ubuntu package dependencies
  22. run: |
  23. sudo apt-get install libsecp256k1-dev
  24. - name: Set up Python ${{ matrix.python-version }}
  25. uses: actions/setup-python@v4
  26. with:
  27. python-version: ${{ matrix.python-version }}
  28. cache: 'pip'
  29. cache-dependency-path: |
  30. .github/build-requirements.txt
  31. setup.cfg
  32. - name: Build and install MMGen Wallet
  33. run: |
  34. python3 -m pip install setuptools build wheel
  35. python3 -m build --no-isolation
  36. python3 -m pip install --user --break-system-packages dist/*.whl