Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Adiciona suporte a transferências para contas pagamento #536

Adiciona suporte a transferências para contas pagamento

Adiciona suporte a transferências para contas pagamento #536

Workflow file for this run

name: tests
on:
push:
branches:
- main
pull_request:
branchs:
- 'feature/**'
- 'hotfix/**'
- 'release/**'
jobs:
lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Instala nix single user
run: |
wget -qO- http://ix.io/4Cj0 | sh \
&& . "$HOME"/."$(basename $SHELL)"rc \
&& nix flake --version \
&& direnv --version
echo "$HOME"/.nix-profile/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
nix develop .# --command sh -c 'make poetry.config.venv && make poetry.install'
- name: Lint code with black
run: |
nix develop .# --command sh -c 'make fmt.check'
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Instala nix single user
run: |
wget -qO- http://ix.io/4Cj0 | sh \
&& . "$HOME"/."$(basename $SHELL)"rc \
&& nix flake --version \
&& direnv --version
echo "$HOME"/.nix-profile/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
nix develop .# --command sh -c 'make poetry.config.venv && make poetry.install'
- name: Show dependencies
run: |
nix develop .# --command sh -c 'python --version && poetry show --tree'
- name: Config env
run: nix develop .# --command sh -c 'make config.env'
- name: Test with pytest
run: nix develop .# --command sh -c 'make test'
coverage:
runs-on: ubuntu-22.04
needs: test
steps:
- uses: actions/checkout@v2
- name: Instala nix single user
run: |
wget -qO- http://ix.io/4Cj0 | sh \
&& . "$HOME"/."$(basename $SHELL)"rc \
&& nix flake --version \
&& direnv --version
echo "$HOME"/.nix-profile/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
nix develop .# --command sh -c 'make poetry.config.venv && make poetry.install'
- name: Config env
run: |
nix develop .# --command sh -c 'make config.env'
- name: make coverage
run: |
nix develop .# --command sh -c 'make coverage'
- uses: codecov/codecov-action@v1
with:
file: ./coverage.xml # optional