build.yaml 945 B

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