Adjust host settings #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: compatibility | |
on: push | |
jobs: | |
poetry: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest ] | |
python-version: [ "3.10.4" ] | |
poetry-version: [ "1.5.1" ] | |
db-url: ["data/mint"] | |
mint-branch: [main] | |
wallet-branch: ['tests/separate_mint_wallet' ] | |
steps: | |
- name: Checkout mint branch | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ matrix.mint-branch}} | |
path: mint | |
submodules: recursive | |
token: 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 | |
- name: Checkout wallet branch | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ matrix.wallet-branch}} | |
path: wallet | |
submodules: recursive | |
token: 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 | |
- name: Set up Poetry ${{ matrix.poetry-version }} | |
uses: abatilo/actions-poetry@v2 | |
with: | |
poetry-version: ${{ matrix.poetry-version }} | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "poetry" | |
- name: Install dependencies mint | |
run: | | |
poetry install --extras pgsql | |
shell: bash | |
working-directory: mint | |
- name: Install dependencies wallet | |
run: | | |
poetry install --extras pgsql | |
shell: bash | |
working-directory: wallet | |
- name: Mint tests | |
env: | |
LIGHTNING: false | |
WALLET_NAME: test_wallet | |
MINT_HOST: "127.0.0.1" | |
MINT_PORT: 3337 | |
MINT_LISTEN_HOST: "127.0.0.1" | |
MINT_LISTEN_PORT: 3337 | |
MINT_DATABASE: "data/mint" | |
MINT_PRIVATE_KEY: "TEST_PRIVATE_KEY" | |
TOR: false | |
run: | | |
poetry run pytest tests --cov-report xml --cov cashu | |
working-directory: mint | |
- name: Wallet tests | |
env: | |
LIGHTNING: false | |
WALLET_NAME: test_wallet | |
MINT_HOST: "127.0.0.1" | |
MINT_PORT: 3337 | |
MINT_LISTEN_HOST: "127.0.0.1" | |
MINT_LISTEN_PORT: 3337 | |
MINT_DATABASE: "data/mint" | |
MINT_PRIVATE_KEY: "TEST_PRIVATE_KEY" | |
TOR: false | |
run: | | |
cd mint | |
poetry run mint & | |
sleep 20s | |
cd ../wallet | |
poetry run pytest tests/wallet --cov-report xml --cov cashu | |
poetry run pytest tests/common --cov-report xml --cov cashu | |