Skip to content

refactor

refactor #350

Workflow file for this run

name: tests
on: [ push, pull_request ]
jobs:
golang:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Build
run: go build -v -o cashu-feni cmd/mint/mint.go
- name: Run Cashu Feni
run: nohup go run cmd/mint/mint.go &
- name: Golang run tests
run: go test -coverprofile=coverage.txt -covermode=atomic -v ./...
- uses: codecov/codecov-action@v3
with:
verbose: true # optional (default = false)
python:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.9" ]
poetry-version: [ "1.3.1" ]
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Build
run: go build -v -o cashu-feni cmd/mint/mint.go
- name: Run Cashu Feni
run: nohup go run cmd/mint/mint.go -port 3337 &
- uses: codecov/codecov-action@v3
with:
verbose: true # optional (default = false)
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Set up Poetry ${{ matrix.poetry-version }}
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- uses: actions/checkout@v2
with:
repository: cashubtc/cashu
path: cashu
submodules: recursive
- name: Install dependencies
run: |
cd cashu
poetry install --with dev
- name: Python run acceptance tests
env:
LIGHTNING: False
MINT_HOST: localhost
MINT_PORT: 3338
run: |
cd cashu
export TOR=false
poetry run pytest tests/test_wallet.py