From bbe34634af436c7432d4c0d6b32b3fc6692ad3aa Mon Sep 17 00:00:00 2001 From: alstr Date: Thu, 27 Oct 2022 12:32:17 +0100 Subject: [PATCH] Update workflows Closes #132 --- .github/workflows/ci.yml | 16 ++++++++++++++++ .github/workflows/{workflow.yml => todo.yml} | 4 ++-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/ci.yml rename .github/workflows/{workflow.yml => todo.yml} (92%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..440ed22 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,16 @@ +name: "Run Tests" +on: + push: + pull_request: +jobs: + build: + runs-on: "ubuntu-latest" + steps: + - uses: "actions/checkout@v3" + - uses: "actions/setup-python@v4" + - name: "Install test dependencies" + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: "Run tests" + run: python -m pytest \ No newline at end of file diff --git a/.github/workflows/workflow.yml b/.github/workflows/todo.yml similarity index 92% rename from .github/workflows/workflow.yml rename to .github/workflows/todo.yml index c400a5c..096ba41 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/todo.yml @@ -1,4 +1,4 @@ -name: "Workflow" +name: "Run TODO to Issue" on: push: workflow_dispatch: @@ -13,7 +13,7 @@ jobs: build: runs-on: "ubuntu-latest" steps: - - uses: "actions/checkout@master" + - uses: "actions/checkout@v3" - name: "TODO to Issue" uses: "alstr/todo-to-issue-action@master" id: "todo"