build.yaml 845 B

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