From 2a02ded988ef4961f299b151845c2929ef016b26 Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Mon, 31 Jan 2022 14:01:51 +0900 Subject: [PATCH 1/5] Actions: Use actions/setup-python cache --- .github/workflows/test.yaml | 11 +++-------- requirements-dev.txt | 1 + 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 6f6f97a58..883e7cae6 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -122,14 +122,9 @@ jobs: steps: - uses: actions/setup-python@v2 with: - python-version: 3.9 - - - uses: actions/cache@v2 - with: - path: ~/.cache/pip - key: finish-pip-1 - restore-keys: | - finish-pip- + python-version: '3.9' + cache: 'pip' + cache-dependency-path: 'requirements-dev.txt' - name: Finished run: | diff --git a/requirements-dev.txt b/requirements-dev.txt index d65512fbb..52db7c27b 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,3 +1,4 @@ cryptography PyNaCl>=1.4.0 pytest +coveralls From 0d0fcd296654350600f4c33bc33f3032b506178d Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Mon, 31 Jan 2022 14:06:06 +0900 Subject: [PATCH 2/5] fixup --- .github/workflows/test.yaml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 883e7cae6..91fcf335c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -49,13 +49,8 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.py }} - - - uses: actions/cache@v2 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-1 - restore-keys: | - ${{ runner.os }}-pip- + cache: 'pip' + cache-dependency-path: 'requirements-dev.txt' - name: Install dependency run: | From ab5779662a93123bc1281f5836ee23ac81a7716b Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Mon, 31 Jan 2022 14:14:38 +0900 Subject: [PATCH 3/5] fixup --- .github/workflows/test.yaml | 2 +- requirements-dev.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 91fcf335c..6eed55582 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -54,7 +54,7 @@ jobs: - name: Install dependency run: | - pip install -U cryptography PyNaCl pytest pytest-cov coveralls + pip install -U -r requirements-dev.txt - name: Set up MySQL run: | diff --git a/requirements-dev.txt b/requirements-dev.txt index 52db7c27b..13d7f7fb4 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,4 +1,5 @@ cryptography PyNaCl>=1.4.0 pytest +pytest-cov coveralls From 93dfc8caf489a311666f3833e1e713684a0b7ad9 Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Mon, 31 Jan 2022 14:21:45 +0900 Subject: [PATCH 4/5] fixup --- .github/workflows/test.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 6eed55582..75b566ec6 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -119,7 +119,6 @@ jobs: with: python-version: '3.9' cache: 'pip' - cache-dependency-path: 'requirements-dev.txt' - name: Finished run: | From aa8d79c71839205db421e374e64361e71721e2f8 Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Mon, 31 Jan 2022 14:30:13 +0900 Subject: [PATCH 5/5] fixup --- .github/workflows/test.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 75b566ec6..37a6cf57f 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -115,6 +115,10 @@ jobs: runs-on: ubuntu-20.04 needs: test steps: + - name: requirements. + run: | + echo coveralls > requirements.txt + - uses: actions/setup-python@v2 with: python-version: '3.9'