diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 00000000..908dd46b --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,31 @@ +name: build + +on: + push: + paths: + - '.github/workflows/*.yaml' + - '**.py' + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + python-version: ["3.9","3.10","3.11"] + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + cache: 'pip' + cache-dependency-path: | + setup.cfg + + - name: Build and install MMGen Wallet + run: | + python3 -m build --no-isolation + python3 -m pip install --user --break-system-packages dist/*.whl diff --git a/.github/workflows/pylint.yaml b/.github/workflows/pylint.yaml index 76913025..4623063f 100644 --- a/.github/workflows/pylint.yaml +++ b/.github/workflows/pylint.yaml @@ -1,10 +1,10 @@ -name: pylint-errors +name: pylint on: push: paths: + - '.github/workflows/*.yaml' - '**.py' - - '**.yaml' jobs: test: diff --git a/README.md b/README.md index 3fcabb81..37fec8ff 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,8 @@ ##### An online/offline cryptocurrency wallet for the command line -![pylint-errors](https://github.com/mmgen/mmgen/workflows/pylint-errors/badge.svg) +![build](https://github.com/mmgen/mmgen/workflows/build/badge.svg) +![pylint](https://github.com/mmgen/mmgen/workflows/pylint/badge.svg) ### Description