From 63cf681343ab48bc7254cc92aacf6d5f06f4105d Mon Sep 17 00:00:00 2001 From: Alexandru Guzinschi Date: Thu, 31 Aug 2023 12:52:08 +0300 Subject: [PATCH] gh actions inlocuieste Travis --- .editorconfig | 4 ++-- .github/workflows/test.yml | 21 +++++++++++++++++++++ .travis.yml | 14 -------------- 3 files changed, 23 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.editorconfig b/.editorconfig index 2b85cb4..3e11fbd 100644 --- a/.editorconfig +++ b/.editorconfig @@ -20,7 +20,7 @@ skip = runtests.py,build balanced_wrapping = true not_skip = __init__.py -[.travis.yml] +[*.yml] indent_size = 2 indent_style = space insert_final_newline = false @@ -38,4 +38,4 @@ insert_final_newline = false # Makefiles always use tabs for indentation [Makefile] indent_style = tab -indent_size = 8 \ No newline at end of file +indent_size = 8 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..4daa605 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,21 @@ +name: Tests + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + id: cp310 + with: + python-version: "3.11" + cache: 'pip' + - name: Install dependencies + if: steps.cp310.outputs.cache-hit != true + run: make install-deps + - name: Run tests + env: + TEST_ARGS: "--src data/ --verbose" + run: make test \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5dbf35e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -sudo: - false - -language: - python - -python: - - 3.5 - -install: - - make install-deps - -script: - - make test \ No newline at end of file