diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2022-09-03 13:41:04 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2022-09-03 13:41:04 +0300 |
commit | b138e0bce1b8f73603ac81d5a1c80efa88208981 (patch) | |
tree | f8038f3c6c05cfa95842ad68263b82123fe9beee /.github | |
parent | ci: organize test matrix (diff) | |
download | pkgcheck-b138e0bce1b8f73603ac81d5a1c80efa88208981.tar.gz pkgcheck-b138e0bce1b8f73603ac81d5a1c80efa88208981.tar.bz2 pkgcheck-b138e0bce1b8f73603ac81d5a1c80efa88208981.zip |
ci: upgrade actions
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/doc.yml | 30 | ||||
-rw-r--r-- | .github/workflows/release.yml | 12 | ||||
-rw-r--r-- | .github/workflows/test.yml | 31 |
3 files changed, 30 insertions, 43 deletions
diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index f75ca8cb..142a4e13 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -9,25 +9,19 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - - name: Set up Python 3.9 - uses: actions/setup-python@v2 + - name: Set up Python 3.10 + uses: actions/setup-python@v4 with: - python-version: 3.9 - - - name: Configure pip cache - uses: actions/cache@v2 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('requirements/*') }} - restore-keys: ${{ runner.os }}-pip- + python-version: 3.10 + cache: 'pip' + cache-dependency-path: requirements/*.txt - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r requirements/dev.txt - pip install -r requirements/docs.txt + pip install -r requirements/dev.txt -r requirements/docs.txt - name: Build sphinx documentation run: | @@ -36,9 +30,9 @@ jobs: touch build/sphinx/html/.nojekyll - name: Deploy docs to gh-pages - uses: JamesIves/github-pages-deploy-action@3.7.1 + uses: JamesIves/github-pages-deploy-action@v4 with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - BRANCH: gh-pages - FOLDER: build/sphinx/html - SINGLE_COMMIT: true + token: ${{ secrets.GITHUB_TOKEN }} + branch: gh-pages + folder: build/sphinx/html + single-commit: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 92e28752..f82bec61 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,24 +10,24 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up Python 3.10 - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: "3.10" + cache: 'pip' + cache-dependency-path: requirements/*.txt - name: Install dependencies run: | # install deps required for building sdist/wheels python -m pip install --upgrade pip - pip install -r requirements/dist.txt - pip install -r requirements/test.txt + pip install -r requirements/dist.txt -r requirements/test.txt - name: Test with pytest - # forcibly enable pytest colors env: - PY_COLORS: 1 + PY_COLORS: 1 # forcibly enable pytest colors run: python setup.py test - name: Build sdist diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bb928de0..67039115 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -42,19 +42,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - - name: Configure pip cache - uses: actions/cache@v2 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('requirements/*') }} - restore-keys: ${{ runner.os }}-pip- + uses: actions/checkout@v3 # experimental targets generally lack lxml wheels - name: Install libxml2 and libxslt development packages @@ -99,17 +87,22 @@ jobs: echo "USE_SYSTEM_TREE_SITTER_BASH=1" >> $GITHUB_ENV popd + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + cache: 'pip' + cache-dependency-path: requirements/*.txt + - name: Install python deps run: | python -m pip install --upgrade pip - pip install -r requirements/test.txt - pip install -r requirements/ci.txt + pip install -r requirements/test.txt -r requirements/ci.txt pip install . - name: Test with pytest - # forcibly enable pytest colors env: - PY_COLORS: 1 + PY_COLORS: 1 # forcibly enable pytest colors run: | pytest --cov --cov-report=term --cov-report=xml -v @@ -125,6 +118,6 @@ jobs: - name: Submit code coverage to codecov if: ${{ matrix.os == 'ubuntu-latest' }} - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v3 with: - file: ./coverage.xml + files: ./coverage.xml |