Skip to content

Altera images para PNG por padrão #487

Altera images para PNG por padrão

Altera images para PNG por padrão #487

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:
steps:

Check failure on line 36 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / tests

Invalid workflow file

The workflow is not valid. .github/workflows/tests.yml (Line: 36, Col: 5): Required property is missing: runs-on
- 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