From 3f6ab0051571d793344fbf87a522003abaa3439d Mon Sep 17 00:00:00 2001 From: Anatoliy Bilenko Date: Mon, 5 Feb 2024 14:09:03 +0200 Subject: [PATCH] makefile workflow updated --- .github/workflows/makefile.yml | 12 ++++-------- Makefile | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 8 deletions(-) create mode 100644 Makefile diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index 5645471..f4917df 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -13,12 +13,8 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Install apt deps - run: sudo apt-get install -y sqlite3 + - uses: actions/setup-python@v2 + with: + python-version: '3.10' - name: Run system tests - run: sudo apt-get install -y sqlite3 && \ - ./system-test mkdb && diff -u <(printf "629\n62\n629\n") \ - <(echo "select count(*) from tick;" \ - " select count(*) from relation;" \ - " select count(*) from attr;" | \ - sqlite3 test/observatory.db) + run: sudo apt-get install && make test diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fe430fa --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +SHELL := /bin/bash + +.PHONY: test +test: clean + ./system-test mkdb + diff -u <(printf "629\n62\n629\n") <(echo "select count(*) from tick;" \ + " select count(*) from relation;" \ + " select count(*) from attr;" | \ + sqlite3 test/observatory.db) + + +.PHONY: clean +clean: + ./system-test clean