From 97478e991b2766fe74c2191711f68179c2906128 Mon Sep 17 00:00:00 2001 From: Emily Sillars Date: Tue, 3 Dec 2024 12:30:40 +0100 Subject: [PATCH 1/2] Create python-app.yml --- .github/workflows/python-app.yml | 42 ++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/python-app.yml diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml new file mode 100644 index 0000000..30549bd --- /dev/null +++ b/.github/workflows/python-app.yml @@ -0,0 +1,42 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Python application + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + # pip install flake8 pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + # - name: Lint with flake8 + # run: | + # # stop the build if there are Python syntax errors or undefined names + # flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + # flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + # - name: Test with pytest + # run: | + # pytest + - name: Test with simple shell script + run: | + sh run_test.sh matmul snax_gemm.py snax_gemm.py From 8e14fefeeed9e3b4fb5d143f1b28119abdc22925 Mon Sep 17 00:00:00 2001 From: EmilySillars Date: Tue, 3 Dec 2024 12:43:05 +0100 Subject: [PATCH 2/2] add workload and out directories --- tests/out/.gitignore | 1 + tests/workloads/.gitignore | 1 + 2 files changed, 2 insertions(+) create mode 100644 tests/out/.gitignore create mode 100644 tests/workloads/.gitignore diff --git a/tests/out/.gitignore b/tests/out/.gitignore new file mode 100644 index 0000000..625d5ee --- /dev/null +++ b/tests/out/.gitignore @@ -0,0 +1 @@ +*.out.* \ No newline at end of file diff --git a/tests/workloads/.gitignore b/tests/workloads/.gitignore new file mode 100644 index 0000000..acbefc3 --- /dev/null +++ b/tests/workloads/.gitignore @@ -0,0 +1 @@ +*.workload.out.* \ No newline at end of file