This repository has been archived by the owner on Jan 24, 2025. It is now read-only.
Atualiza versão da API de cobrança PIX v2 #550
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: tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branchs: | |
- 'feature/**' | |
- 'hotfix/**' | |
- 'release/**' | |
jobs: | |
lint: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Instala nix single user | |
run: | | |
BASE_URL='https://raw.githubusercontent.com/ES-Nix/get-nix/' \ | |
&& SHA256=87fa0f1dbfdd28a1f99b39d5bd4dcc39de97bc64 \ | |
&& NIX_RELEASE_VERSION='2.10.2' \ | |
&& curl -fsSL "${BASE_URL}""$SHA256"/get-nix.sh | sh -s -- ${NIX_RELEASE_VERSION} \ | |
&& . "$HOME"/.nix-profile/etc/profile.d/nix.sh \ | |
&& . ~/."$(basename $SHELL)"rc \ | |
&& export TMPDIR=/tmp \ | |
&& nix flake --version \ | |
&& nix registry pin nixpkgs github:NixOS/nixpkgs/ea4c80b39be4c09702b0cb3b42eab59e2ba4f24b \ | |
&& curl -fsSL https://raw.githubusercontent.com/ES-Nix/get-nix/"$SHA256"/install_direnv_and_nix_direnv.sh | sh \ | |
&& . ~/."$(basename $SHELL)"rc \ | |
&& 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@v4 | |
- name: Instala nix single user | |
run: | | |
BASE_URL='https://raw.githubusercontent.com/ES-Nix/get-nix/' \ | |
&& SHA256=87fa0f1dbfdd28a1f99b39d5bd4dcc39de97bc64 \ | |
&& NIX_RELEASE_VERSION='2.10.2' \ | |
&& curl -fsSL "${BASE_URL}""$SHA256"/get-nix.sh | sh -s -- ${NIX_RELEASE_VERSION} \ | |
&& . "$HOME"/.nix-profile/etc/profile.d/nix.sh \ | |
&& . ~/."$(basename $SHELL)"rc \ | |
&& export TMPDIR=/tmp \ | |
&& nix flake --version \ | |
&& nix registry pin nixpkgs github:NixOS/nixpkgs/ea4c80b39be4c09702b0cb3b42eab59e2ba4f24b \ | |
&& curl -fsSL https://raw.githubusercontent.com/ES-Nix/get-nix/"$SHA256"/install_direnv_and_nix_direnv.sh | sh \ | |
&& . ~/."$(basename $SHELL)"rc \ | |
&& 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@v4 | |
- name: Instala nix single user | |
run: | | |
BASE_URL='https://raw.githubusercontent.com/ES-Nix/get-nix/' \ | |
&& SHA256=87fa0f1dbfdd28a1f99b39d5bd4dcc39de97bc64 \ | |
&& NIX_RELEASE_VERSION='2.10.2' \ | |
&& curl -fsSL "${BASE_URL}""$SHA256"/get-nix.sh | sh -s -- ${NIX_RELEASE_VERSION} \ | |
&& . "$HOME"/.nix-profile/etc/profile.d/nix.sh \ | |
&& . ~/."$(basename $SHELL)"rc \ | |
&& export TMPDIR=/tmp \ | |
&& nix flake --version \ | |
&& nix registry pin nixpkgs github:NixOS/nixpkgs/ea4c80b39be4c09702b0cb3b42eab59e2ba4f24b \ | |
&& curl -fsSL https://raw.githubusercontent.com/ES-Nix/get-nix/"$SHA256"/install_direnv_and_nix_direnv.sh | sh \ | |
&& . ~/."$(basename $SHELL)"rc \ | |
&& 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@v4 | |
with: | |
file: ./coverage.xml # optional |