-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Usando GitHub Actions para correr las pruebas
Este cambio deja de usar Travis y en vez usa GitHub Actions para correr las pruebas.
- Loading branch information
Showing
60 changed files
with
11,432 additions
and
8,216 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: {} | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install JavaScript dependencies | ||
run: npm install | ||
|
||
- name: Install Python dependencies | ||
run: | | ||
python3 -m pip install --user setuptools | ||
python3 -m pip install --user wheel | ||
python3 -m pip install --user \ | ||
selenium \ | ||
pytest | ||
- name: Run karel.js tests | ||
run: npm test | ||
|
||
- name: Run Webdriver tests | ||
run: python3 -m pytest test/ --browser=firefox --browser=chrome | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
HOOK_TOOLS_VERSION: 20200816 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Get docker container | ||
run: docker pull omegaup/hook_tools:${{ env.HOOK_TOOLS_VERSION }} | ||
|
||
- name: Run linters | ||
run: | | ||
docker run --rm \ | ||
--user "$(id -u):$(id -g)" \ | ||
--volume "${PWD}:/src" \ | ||
omegaup/hook_tools:${{ env.HOOK_TOOLS_VERSION }} validate --all |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[MESSAGES CONTROL] | ||
disable=invalid-name,too-few-public-methods,relative-beyond-top-level,import-self | ||
|
||
[DESIGN] | ||
max-attributes=20 |
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,61 @@ | ||
<!DOCTYPE html> | ||
<html lang="es"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Ayuda de Karel.js</title> | ||
<link href="css/bootstrap.css" | ||
rel="stylesheet" | ||
type="text/css"> | ||
<link href="css/bootstrap-responsive.css" | ||
rel="stylesheet" | ||
type="text/css"> | ||
</head> | ||
<body> | ||
<h1>Ayuda de Karel.js</h1> | ||
<p>Karel.js es un port de <a href= | ||
"http://www.cimat.mx/~amor/Omi/Utilerias/KarelOMI.zip">KarelOMI</a> a JavaScript, y que facilita | ||
la exportación del mundo y la salida esperada a omegaUp.</p> | ||
<p>Para editar el mundo, haz click en él. Click en alguna intersección agrega un zumbador, | ||
Ctrl+Click elimina uno. Shift-Click marca la casilla para que sea incluida en la salida. Puedes | ||
mover a Karel (así como cambiarlo de dirección) usando click derecho.</p> | ||
<p>Una vez que hayas empezado a ejecutar un programa de Karel, tanto el mundo como el editor se | ||
volverán de solo-lectura hasta que hagas click en el botón para regresar al mundo a su estado | ||
original (<button class="btn" | ||
data-toggle="tooltip" | ||
id="worldclean" | ||
title="Regresar el mundo a su estado original"><em class= | ||
"icon-repeat"></em></button>).</p> | ||
<p>Puedes importar un mundo (archivo .mdo) y sus condiciones de ejecución (archivo .kec) usando | ||
el comando Mundo > Importar MDO/KEC.</p> | ||
<ul> | ||
<li> | ||
<a href="manual/Karel.html">Tutorial de Karel - Pascal</a> | ||
</li> | ||
<li> | ||
<a href="manual/KarelJAVA.html">Tutorial de Karel - Java</a> | ||
</li> | ||
<li> | ||
<a href="manual/KarelSyntax_es.html">Gramática de Karel - Pascal</a> | ||
</li> | ||
<li> | ||
<a href="manual/JarelSyntax.html">Gramática de Karel - Java</a> | ||
</li> | ||
</ul> | ||
</body> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Ayuda de Karel.js</title> | ||
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" /> | ||
<link | ||
href="css/bootstrap-responsive.css" | ||
rel="stylesheet" | ||
type="text/css" | ||
/> | ||
</head> | ||
<body> | ||
<h1>Ayuda de Karel.js</h1> | ||
<p> | ||
Karel.js es un port de | ||
<a href="http://www.cimat.mx/~amor/Omi/Utilerias/KarelOMI.zip" | ||
>KarelOMI</a | ||
> | ||
a JavaScript, y que facilita la exportación del mundo y la salida esperada | ||
a omegaUp. | ||
</p> | ||
<p> | ||
Para editar el mundo, haz click en él. Click en alguna intersección agrega | ||
un zumbador, Ctrl+Click elimina uno. Shift-Click marca la casilla para que | ||
sea incluida en la salida. Puedes mover a Karel (así como cambiarlo de | ||
dirección) usando click derecho. | ||
</p> | ||
<p> | ||
Una vez que hayas empezado a ejecutar un programa de Karel, tanto el mundo | ||
como el editor se volverán de solo-lectura hasta que hagas click en el | ||
botón para regresar al mundo a su estado original ( | ||
<button | ||
class="btn" | ||
data-toggle="tooltip" | ||
id="worldclean" | ||
title="Regresar el mundo a su estado original" | ||
> | ||
<em class="icon-repeat"></em></button | ||
>). | ||
</p> | ||
<p> | ||
Puedes importar un mundo (archivo .mdo) y sus condiciones de ejecución | ||
(archivo .kec) usando el comando Mundo > Importar MDO/KEC. | ||
</p> | ||
<ul> | ||
<li> | ||
<a href="manual/Karel.html">Tutorial de Karel - Pascal</a> | ||
</li> | ||
<li> | ||
<a href="manual/KarelJAVA.html">Tutorial de Karel - Java</a> | ||
</li> | ||
<li> | ||
<a href="manual/KarelSyntax_es.html">Gramática de Karel - Pascal</a> | ||
</li> | ||
<li> | ||
<a href="manual/JarelSyntax.html">Gramática de Karel - Java</a> | ||
</li> | ||
</ul> | ||
</body> | ||
</html> |
Oops, something went wrong.