From c9753a2b2aca54ffce7e4c2f5256e0af93d76fa7 Mon Sep 17 00:00:00 2001 From: dours Date: Mon, 24 Oct 2022 20:26:37 +0300 Subject: [PATCH 01/14] Update github-ci.yml --- .github/workflows/github-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index fe14ccc93..83c198a6b 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -109,7 +109,7 @@ jobs: name: artifacts path: ./ - name: Build with Maven - run: cp -a transpiler/src/test/resources/org/polystat/py2eo/transpiler/runEO . && cp transpiler/src/test/resources/org/polystat/py2eo/transpiler/results/*.eo ./runEO && cp -a transpiler/src/main/eo/preface ./runEO && cp -a transpiler/src/main/eo/xmodules ./runEO && mv ./runEO/own_module.eo ./runEO/xmodules/xown_module.eo && cd ./runEO && mvn clean test + run: cp -a transpiler/src/test/resources/org/polystat/py2eo/transpiler/runEO . && cp transpiler/src/test/resources/org/polystat/py2eo/transpiler/results/exceptions-finally-3.eo ./runEO && cp -a transpiler/src/main/eo/preface ./runEO && cp -a transpiler/src/main/eo/xmodules ./runEO && mv ./runEO/own_module.eo ./runEO/xmodules/xown_module.eo && cd ./runEO && mvn clean test - name: upload artifacts uses: actions/upload-artifact@v2 with: From a7fbf3969885a568d9fc200e3baac9ae0dd57ac9 Mon Sep 17 00:00:00 2001 From: dours Date: Mon, 24 Oct 2022 20:37:21 +0300 Subject: [PATCH 02/14] forgot file --- .github/workflows/github-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index 83c198a6b..caee0171c 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -109,7 +109,7 @@ jobs: name: artifacts path: ./ - name: Build with Maven - run: cp -a transpiler/src/test/resources/org/polystat/py2eo/transpiler/runEO . && cp transpiler/src/test/resources/org/polystat/py2eo/transpiler/results/exceptions-finally-3.eo ./runEO && cp -a transpiler/src/main/eo/preface ./runEO && cp -a transpiler/src/main/eo/xmodules ./runEO && mv ./runEO/own_module.eo ./runEO/xmodules/xown_module.eo && cd ./runEO && mvn clean test + run: cp -a transpiler/src/test/resources/org/polystat/py2eo/transpiler/runEO . && cp transpiler/src/test/resources/org/polystat/py2eo/transpiler/results/{exceptions-finally-3,own_module}.eo ./runEO && cp -a transpiler/src/main/eo/preface ./runEO && cp -a transpiler/src/main/eo/xmodules ./runEO && mv ./runEO/own_module.eo ./runEO/xmodules/xown_module.eo && cd ./runEO && mvn clean test - name: upload artifacts uses: actions/upload-artifact@v2 with: From 6f3068880812f9b25d7d0770dfaff40bf63af652 Mon Sep 17 00:00:00 2001 From: dours Date: Mon, 24 Oct 2022 21:53:48 +0300 Subject: [PATCH 03/14] test exceptions-3 separately --- .github/workflows/github-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index caee0171c..9222516d9 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -109,7 +109,7 @@ jobs: name: artifacts path: ./ - name: Build with Maven - run: cp -a transpiler/src/test/resources/org/polystat/py2eo/transpiler/runEO . && cp transpiler/src/test/resources/org/polystat/py2eo/transpiler/results/{exceptions-finally-3,own_module}.eo ./runEO && cp -a transpiler/src/main/eo/preface ./runEO && cp -a transpiler/src/main/eo/xmodules ./runEO && mv ./runEO/own_module.eo ./runEO/xmodules/xown_module.eo && cd ./runEO && mvn clean test + run: cp -a transpiler/src/test/resources/org/polystat/py2eo/transpiler/runEO . && cp transpiler/src/test/resources/org/polystat/py2eo/transpiler/results/*.eo ./runEO && rm ./runEO/exceptions-finally-3.eo && cp -a transpiler/src/main/eo/preface ./runEO && cp -a transpiler/src/main/eo/xmodules ./runEO && mv ./runEO/own_module.eo ./runEO/xmodules/xown_module.eo && cd ./runEO && mvn clean test && rm ./runEO/*.eo && cp transpiler/src/test/resources/org/polystat/py2eo/transpiler/results/exceptions-finally-3.eo ./runEO && mvn clean test - name: upload artifacts uses: actions/upload-artifact@v2 with: From 6118ae9bec318ae646cef3302234d2f1681d4658 Mon Sep 17 00:00:00 2001 From: dours Date: Mon, 24 Oct 2022 22:42:21 +0300 Subject: [PATCH 04/14] test exceptions-3 separately --- .github/workflows/github-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index 9222516d9..5b9abfec8 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -109,7 +109,7 @@ jobs: name: artifacts path: ./ - name: Build with Maven - run: cp -a transpiler/src/test/resources/org/polystat/py2eo/transpiler/runEO . && cp transpiler/src/test/resources/org/polystat/py2eo/transpiler/results/*.eo ./runEO && rm ./runEO/exceptions-finally-3.eo && cp -a transpiler/src/main/eo/preface ./runEO && cp -a transpiler/src/main/eo/xmodules ./runEO && mv ./runEO/own_module.eo ./runEO/xmodules/xown_module.eo && cd ./runEO && mvn clean test && rm ./runEO/*.eo && cp transpiler/src/test/resources/org/polystat/py2eo/transpiler/results/exceptions-finally-3.eo ./runEO && mvn clean test + run: cp -a transpiler/src/test/resources/org/polystat/py2eo/transpiler/runEO . && cp transpiler/src/test/resources/org/polystat/py2eo/transpiler/results/*.eo ./runEO && rm ./runEO/exceptions-finally-3.eo && cp -a transpiler/src/main/eo/preface ./runEO && cp -a transpiler/src/main/eo/xmodules ./runEO && mv ./runEO/own_module.eo ./runEO/xmodules/xown_module.eo && cd ./runEO && mvn clean test && rm '*.eo' && cp ../transpiler/src/test/resources/org/polystat/py2eo/transpiler/results/exceptions-finally-3.eo . && mvn clean test - name: upload artifacts uses: actions/upload-artifact@v2 with: From 88082169cb4ab1dc993f842edf7699bcbc95722d Mon Sep 17 00:00:00 2001 From: dours Date: Mon, 24 Oct 2022 23:27:48 +0300 Subject: [PATCH 05/14] test exceptions-3 separately --- .github/workflows/github-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index 5b9abfec8..2fc9030c7 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -109,7 +109,7 @@ jobs: name: artifacts path: ./ - name: Build with Maven - run: cp -a transpiler/src/test/resources/org/polystat/py2eo/transpiler/runEO . && cp transpiler/src/test/resources/org/polystat/py2eo/transpiler/results/*.eo ./runEO && rm ./runEO/exceptions-finally-3.eo && cp -a transpiler/src/main/eo/preface ./runEO && cp -a transpiler/src/main/eo/xmodules ./runEO && mv ./runEO/own_module.eo ./runEO/xmodules/xown_module.eo && cd ./runEO && mvn clean test && rm '*.eo' && cp ../transpiler/src/test/resources/org/polystat/py2eo/transpiler/results/exceptions-finally-3.eo . && mvn clean test + run: cp -a transpiler/src/test/resources/org/polystat/py2eo/transpiler/runEO . && cp transpiler/src/test/resources/org/polystat/py2eo/transpiler/results/*.eo ./runEO && rm ./runEO/exceptions-finally-3.eo && cp -a transpiler/src/main/eo/preface ./runEO && cp -a transpiler/src/main/eo/xmodules ./runEO && mv ./runEO/own_module.eo ./runEO/xmodules/xown_module.eo && cd ./runEO && mvn clean test && rm *.eo && cp ../transpiler/src/test/resources/org/polystat/py2eo/transpiler/results/exceptions-finally-3.eo . && mvn clean test - name: upload artifacts uses: actions/upload-artifact@v2 with: From 99eee1ef5580042dfc6565f9a39be2d8af4b47d4 Mon Sep 17 00:00:00 2001 From: dours Date: Thu, 27 Oct 2022 17:16:19 +0300 Subject: [PATCH 06/14] Update README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 3911f0308..a20087795 100644 --- a/README.md +++ b/README.md @@ -143,6 +143,16 @@ $ docker run -v $(pwd):/eo yegor256/py2eo hello.py -o hello.eo This command will translate `hello.py` in the current directory, saving the output to the `hello.eo` file. +## A list of not supported language features ## +1. Any kind of yield, also coroutines and generators (incl generator expressions) -- no support in EO +1. Threads, async, futures, await -- no support in EO +1. Dynamic features of python (dynamic creation/change/lookup/deletion of variables, creation of classes with metaclasses etc., dynamic features of import) -- using completely dynamic features would make the output EO not statically analyzable +1. Multiple inheritance -- not obvious how to do that for a general case, but with the EO delegation principle in mind +1. The majority of standard library -- it is mostly written in C, so even if we support all of the python syntax, it is still a problem to support the library without rewriting it manually. +1. Star expressions are mostly not supported -- possible, but not yet finished +1. Array slicing is partially supported -- possible, but not yet finished +1. The import system is partially supported -- possible, but not yet finished + ## Python syntax and tests coverage We have [handwritten tests](https://github.com/polystat/py2eo/tree/master/transpiler/src/test/resources/org/polystat/py2eo/transpiler) that are divided into groups by type: functional (also divided into groups by constructs in accordance with the language specification), integration tests (tests for the polystat analyzer), "negative" tests, etc. From f05e47ba65052f861ac5e2f372a923300a9c9311 Mon Sep 17 00:00:00 2001 From: dours Date: Thu, 27 Oct 2022 17:17:20 +0300 Subject: [PATCH 07/14] Update README.md --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a20087795..fe50ee3ee 100644 --- a/README.md +++ b/README.md @@ -13,13 +13,14 @@ 2. [Quick Start](#quick-start) 3. [How to contribute](#how-to-contribute) 4. [How to transpile Py to EO](#how-to-transpile-py-to-eo) -5. [Python syntax and tests coverage](#python-syntax-and-tests-coverage) -6. [Syntax support and passed tests info](#for-now-we-support-529-of-python-syntax-and-572-are-passed-successefully) -7. [Big project transpilation results](#py2eo-is-capable-of-transpiling-more-than-hundreds-of-thousands-lines-of-python-code) +5. [A list of not supported language features](#a-list-of-not-supported-language-features) +6. [Python syntax and tests coverage](#python-syntax-and-tests-coverage) +7. [Syntax support and passed tests info](#for-now-we-support-529-of-python-syntax-and-572-are-passed-successefully) +8. [Big project transpilation results](#py2eo-is-capable-of-transpiling-more-than-hundreds-of-thousands-lines-of-python-code) - [Django](#django) - [CPython](#cpython) -8. [Architecture and design](#architecture-and-design) -9. [How we translate Python to EOLang](#how-do-we-project-python-to-eolang) +9. [Architecture and design](#architecture-and-design) +10. [How we translate Python to EOLang](#how-do-we-project-python-to-eolang) - [while](#while) - [while-try-break](#while-try-break) - [function definition](#function-definition) From 9420559eccad31de285a3f6638799c5745f36233 Mon Sep 17 00:00:00 2001 From: bugdea1er Date: Mon, 31 Oct 2022 16:08:15 +0300 Subject: [PATCH 08/14] Moved repositories to temp directories --- .../polystat/py2eo/transpiler/CPythonIT.scala | 36 ++++++++++++------- .../polystat/py2eo/transpiler/DjangoIT.scala | 27 +++++++------- 2 files changed, 37 insertions(+), 26 deletions(-) diff --git a/transpiler/src/test/scala/org/polystat/py2eo/transpiler/CPythonIT.scala b/transpiler/src/test/scala/org/polystat/py2eo/transpiler/CPythonIT.scala index 21c159369..9e80fb769 100644 --- a/transpiler/src/test/scala/org/polystat/py2eo/transpiler/CPythonIT.scala +++ b/transpiler/src/test/scala/org/polystat/py2eo/transpiler/CPythonIT.scala @@ -15,28 +15,40 @@ import scala.util.Try @TestMethodOrder(classOf[OrderAnnotation]) final class CPythonIT extends Commons { - private val dirPath: Path = s"$testsPrefix/testParserPrinter" private val cpythonLink = "https://github.com/python/cpython" + private val directory = Directory.makeTemp(prefix = "org.polystat.py2eo.") private val blacklisted = Set( + // these are excluded because of some encoding problems in the lexer "test_unicode_identifiers.py", "test_source_encoding.py", "badsyntax_3131.py", "badsyntax_pep3120.py", - "module_koi8_r.py", "module_iso_8859_1.py" + "module_koi8_r.py", "module_iso_8859_1.py", + // most of these are excluded because they do tests by comparing stack traces as strings + // but code before parser-printer has different line numbers than code after => traces are + // always different => + // those tests cannot possibly pass + "test_traceback.py", "test_dis.py", "test_zipfile.py", + "test_multiprocessing_fork.py", "test_sys.py", + "test_import.yaml", "test_strtod.py", "test_trace.py", + "test_doctest.py", "test_concurrent_futures.py", "test_inspect.py", + "test_tracemalloc.py", "test_multiprocessing_spawn.py", + "test_sys_settrace.py", "test_multiprocessing_forkserver.py", + "test_compileall.py", "test_asyncio.py", "test_unittest.py", + "test_email.py", "test_tools.py", "test_atexit.py", "test_pdb.py", + "test_logging.py", "test_coroutines.py", "test_tasks.py", + + "test_grammar.py", "test_headerregistry.py" ) @Test @Order(1) def parserPrinterOnCPython(): Unit = { - val dir = Directory(dirPath) - dir.createDirectory(failIfExists = false) - - val eoFiles = Directory(dirPath / "afterParser") + val eoFiles = Directory(directory / "afterParser") eoFiles.createDirectory(failIfExists = false) - val cpython = Directory(dirPath / "cpython") - if (!cpython.exists) { - Process(s"git clone $cpythonLink ${cpython.name}", dirPath.jfile).!! - Process("git checkout v3.8.10", cpython.jfile).!! - } + val cpython = Directory(directory / "cpython") + + Process(s"git clone $cpythonLink ${cpython.name}", directory.jfile).!! + Process("git checkout v3.8.10", cpython.jfile).!! val testsDir = Directory(cpython / "Lib" / "test") val tests = testsDir.deepFiles.filter(_.extension == "py") @@ -61,6 +73,6 @@ final class CPythonIT extends Commons { @Test @Order(2) def checkEOSyntax(): Unit = { - checkEOSyntaxInDirectory(Directory(dirPath / "afterParser").toString) + checkEOSyntaxInDirectory(Directory(directory / "afterParser").toString) } } \ No newline at end of file diff --git a/transpiler/src/test/scala/org/polystat/py2eo/transpiler/DjangoIT.scala b/transpiler/src/test/scala/org/polystat/py2eo/transpiler/DjangoIT.scala index f3e81772a..4c7f047cc 100644 --- a/transpiler/src/test/scala/org/polystat/py2eo/transpiler/DjangoIT.scala +++ b/transpiler/src/test/scala/org/polystat/py2eo/transpiler/DjangoIT.scala @@ -16,35 +16,34 @@ import scala.sys.process.Process @TestMethodOrder(classOf[OrderAnnotation]) class DjangoIT extends Commons { + private val djangoLink = "https://github.com/django/django" + private val directory = Directory.makeTemp(prefix = "org.polystat.py2eo.") + @Test @Order(1) def genUnsupportedDjango() : Unit = { - val root = new File(testsPrefix) - val django = new File(testsPrefix + "/django") - if (!django.exists()) { - Process("git clone -b 4.0 https://github.com/django/django", root).!! - } - val test = dfsFiles(django).filter(f => f.getName.endsWith(".py")) - - test.map(test => - { + val django = Directory(directory + "/django") + + Process(s"git clone -b 4.0 $djangoLink ${django.name}", directory.jfile).!! + + val tests = django.deepFiles.filter(_.extension == "py") + for {test <- tests} yield { def db(s : Statement.T, str : String) = () // debugPrinter(test)(_, _) - val name = test.getName + val name = test.name val eoText = Transpile.transpile(db)( chopExtension(name), Transpile.Parameters(wrapInAFunction = false, isModule = false), - readFile(test) + readFile(test.jfile) ) - writeFile(test, "genUnsupportedEO", ".eo", eoText) + writeFile(test.jfile, "genUnsupportedEO", ".eo", eoText) } - ) } @Test @Order(2) def checkSyntaxForDjango() : Unit = { - checkEOSyntaxInDirectory(testsPrefix + "/django") + checkEOSyntaxInDirectory(Directory(directory + "/django").toString) } } From c04bbf2eed2478ad4eb2f342cbbd4f826a7460fe Mon Sep 17 00:00:00 2001 From: bugdea1er Date: Mon, 31 Oct 2022 16:08:25 +0300 Subject: [PATCH 09/14] Removed -q flag --- .github/workflows/github-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index 2fc9030c7..4439c601d 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -16,7 +16,7 @@ jobs: java-version: '14' distribution: 'adopt' - name: Build with Maven - run: mvn clean compile -B -q + run: mvn clean compile -B test: strategy: @@ -35,7 +35,7 @@ jobs: with: python-version: '3.8.10' - name: Build with Maven - run: mvn clean verify -B -q -DskipITs + run: mvn clean verify -B -DskipITs - name: archive artifacts uses: actions/upload-artifact@v2 with: From cc5750d963b7c375cede3736e022aa16a8dd2111 Mon Sep 17 00:00:00 2001 From: bugdea1er Date: Mon, 31 Oct 2022 16:09:35 +0300 Subject: [PATCH 10/14] Stylefixes --- .../polystat/py2eo/transpiler/DjangoIT.scala | 33 ++++++++----------- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/transpiler/src/test/scala/org/polystat/py2eo/transpiler/DjangoIT.scala b/transpiler/src/test/scala/org/polystat/py2eo/transpiler/DjangoIT.scala index 4c7f047cc..60550f4be 100644 --- a/transpiler/src/test/scala/org/polystat/py2eo/transpiler/DjangoIT.scala +++ b/transpiler/src/test/scala/org/polystat/py2eo/transpiler/DjangoIT.scala @@ -3,13 +3,7 @@ package org.polystat.py2eo.transpiler import org.junit.jupiter.api.MethodOrderer.OrderAnnotation import org.junit.jupiter.api.{Order, Test, TestMethodOrder} import org.polystat.py2eo.parser.Statement -import org.polystat.py2eo.transpiler.Common.dfsFiles -import java.io.File -import java.nio.file.{Files, StandardCopyOption} -import scala.concurrent.ExecutionContext.Implicits.global -import scala.concurrent.duration.Duration -import scala.concurrent.{Await, Future} import scala.reflect.io.Directory import scala.sys.process.Process @@ -21,28 +15,29 @@ class DjangoIT extends Commons { @Test @Order(1) - def genUnsupportedDjango() : Unit = { + def genUnsupportedDjango(): Unit = { val django = Directory(directory + "/django") Process(s"git clone -b 4.0 $djangoLink ${django.name}", directory.jfile).!! val tests = django.deepFiles.filter(_.extension == "py") - for {test <- tests} yield { - def db(s : Statement.T, str : String) = () // debugPrinter(test)(_, _) - val name = test.name - val eoText = - Transpile.transpile(db)( - chopExtension(name), - Transpile.Parameters(wrapInAFunction = false, isModule = false), - readFile(test.jfile) - ) - writeFile(test.jfile, "genUnsupportedEO", ".eo", eoText) - } + for (test <- tests) { + def db(s: Statement.T, str: String) = () // debugPrinter(test)(_, _) + + val name = test.name + val eoText = + Transpile.transpile(db)( + chopExtension(name), + Transpile.Parameters(wrapInAFunction = false, isModule = false), + readFile(test.jfile) + ) + writeFile(test.jfile, "genUnsupportedEO", ".eo", eoText) + } } @Test @Order(2) - def checkSyntaxForDjango() : Unit = { + def checkSyntaxForDjango(): Unit = { checkEOSyntaxInDirectory(Directory(directory + "/django").toString) } From c21268970f2691323f13bd6778b82729694c6032 Mon Sep 17 00:00:00 2001 From: bugdea1er Date: Mon, 31 Oct 2022 16:14:25 +0300 Subject: [PATCH 11/14] Added cleanup --- .../scala/org/polystat/py2eo/transpiler/CPythonIT.scala | 6 +++++- .../test/scala/org/polystat/py2eo/transpiler/DjangoIT.scala | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/transpiler/src/test/scala/org/polystat/py2eo/transpiler/CPythonIT.scala b/transpiler/src/test/scala/org/polystat/py2eo/transpiler/CPythonIT.scala index 9e80fb769..c99fb034a 100644 --- a/transpiler/src/test/scala/org/polystat/py2eo/transpiler/CPythonIT.scala +++ b/transpiler/src/test/scala/org/polystat/py2eo/transpiler/CPythonIT.scala @@ -1,7 +1,7 @@ package org.polystat.py2eo.transpiler import org.junit.jupiter.api.Assertions.fail -import org.junit.jupiter.api.{Order, Test, TestMethodOrder} +import org.junit.jupiter.api.{AfterEach, Order, Test, TestMethodOrder} import org.junit.jupiter.api.MethodOrderer.OrderAnnotation import scala.concurrent.ExecutionContext.Implicits.global @@ -70,6 +70,10 @@ final class CPythonIT extends Commons { for (f <- futures) Await.result(f, Duration.Inf) } + @AfterEach def cleanup(): Unit = { + directory.deleteRecursively + } + @Test @Order(2) def checkEOSyntax(): Unit = { diff --git a/transpiler/src/test/scala/org/polystat/py2eo/transpiler/DjangoIT.scala b/transpiler/src/test/scala/org/polystat/py2eo/transpiler/DjangoIT.scala index 60550f4be..5d2adc85d 100644 --- a/transpiler/src/test/scala/org/polystat/py2eo/transpiler/DjangoIT.scala +++ b/transpiler/src/test/scala/org/polystat/py2eo/transpiler/DjangoIT.scala @@ -1,7 +1,7 @@ package org.polystat.py2eo.transpiler import org.junit.jupiter.api.MethodOrderer.OrderAnnotation -import org.junit.jupiter.api.{Order, Test, TestMethodOrder} +import org.junit.jupiter.api.{AfterEach, Order, Test, TestMethodOrder} import org.polystat.py2eo.parser.Statement import scala.reflect.io.Directory @@ -35,6 +35,10 @@ class DjangoIT extends Commons { } } + @AfterEach def cleanup(): Unit = { + directory.deleteRecursively + } + @Test @Order(2) def checkSyntaxForDjango(): Unit = { From 4715da40fe61d67c4f47c7973be72fb32dd8ab40 Mon Sep 17 00:00:00 2001 From: bugdea1er Date: Mon, 31 Oct 2022 17:38:56 +0300 Subject: [PATCH 12/14] Added scheduled integration tests --- .github/workflows/IntegrationTests.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/IntegrationTests.yaml diff --git a/.github/workflows/IntegrationTests.yaml b/.github/workflows/IntegrationTests.yaml new file mode 100644 index 000000000..0da50a210 --- /dev/null +++ b/.github/workflows/IntegrationTests.yaml @@ -0,0 +1,21 @@ +name: Integration Tests + +on: + schedule: + - cron: '30 6 * * 1' + +jobs: + Verify: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 14 + uses: actions/setup-java@v2 + with: + java-version: '14' + distribution: 'adopt' + - uses: actions/setup-python@v2 + with: + python-version: '3.8.10' + - name: Run integration tests + run: mvn clean verify -B \ No newline at end of file From d91dc6eb17c9660afa70144f8e2b0a8114072ce1 Mon Sep 17 00:00:00 2001 From: bugdea1er Date: Mon, 31 Oct 2022 17:41:20 +0300 Subject: [PATCH 13/14] Updated timing --- .github/workflows/IntegrationTests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/IntegrationTests.yaml b/.github/workflows/IntegrationTests.yaml index 0da50a210..75ac79846 100644 --- a/.github/workflows/IntegrationTests.yaml +++ b/.github/workflows/IntegrationTests.yaml @@ -2,7 +2,7 @@ name: Integration Tests on: schedule: - - cron: '30 6 * * 1' + - cron: '30 18 * * 1' jobs: Verify: From ca8b06877b12b58bd13f03587a711e0cbbbda11d Mon Sep 17 00:00:00 2001 From: bugdea1er Date: Mon, 31 Oct 2022 17:43:52 +0300 Subject: [PATCH 14/14] Updated step name --- .github/workflows/IntegrationTests.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/IntegrationTests.yaml b/.github/workflows/IntegrationTests.yaml index 75ac79846..83d027e40 100644 --- a/.github/workflows/IntegrationTests.yaml +++ b/.github/workflows/IntegrationTests.yaml @@ -14,7 +14,8 @@ jobs: with: java-version: '14' distribution: 'adopt' - - uses: actions/setup-python@v2 + - name: Set up Python 3.8.10 + uses: actions/setup-python@v2 with: python-version: '3.8.10' - name: Run integration tests