Altera images para PNG por padrão #487
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@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: | ||
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: run snippet | ||
run: | | ||
nix develop .# --command sh -c 'python snippet.py' | ||
- 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: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
- name: Install and configure Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
version: 1.3.2 | ||
- name: Install dependencies | ||
run: | | ||
make poetry.config.native | ||
make poetry.install | ||
- name: Config env | ||
run: make config.env | ||
- name: make coverage | ||
run: make coverage | ||
- uses: codecov/codecov-action@v1 | ||
with: | ||
file: ./coverage.xml # optional | ||