From 342b222fe0e63806a48eccb5be6b2a7094686983 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Tue, 18 Jul 2023 15:00:12 +0300 Subject: [PATCH 1/2] Update GitHub Actions versions with gha-tools --- .github/workflows/main.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7eb682a..ef04ffc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,21 +8,21 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: 3.9 + cache: pip + cache-dependency-path: | + requirements-dev.txt + setup.py - name: Install dependencies run: | python -m pip install --upgrade pip setuptools wheel python -m pip install -r requirements-dev.txt - name: Run flake8 run: flake8 - - uses: actions/cache@v2 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip build: runs-on: ubuntu-latest strategy: @@ -34,24 +34,24 @@ jobs: - py39 - pypy3 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Fedora Tox with ${{ matrix.tox_env }} - uses: fedora-python/tox-github-action@v0.4 + uses: fedora-python/tox-github-action@v37.0 with: tox_env: ${{ matrix.tox_env }} - - uses: actions/setup-python@v2 - - uses: actions/cache@v2 + - uses: actions/setup-python@v4 with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip - + cache: pip + cache-dependency-path: | + requirements-dev.txt + setup.py deploy: name: Build deploy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - - uses: casperdcl/deploy-pypi@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + - uses: casperdcl/deploy-pypi@v2.3.2 with: password: ${{ secrets.PYPI_TOKEN }} build: true From 2281a7ff3a93db8e0069bbfb79694af494d6eeb8 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Tue, 18 Jul 2023 15:16:46 +0300 Subject: [PATCH 2/2] Bump PyYAML version to try and fix CI --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 723d024..d9a6a7b 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -107,7 +107,7 @@ pytest==6.2.3 # via # -r requirements-dev.in # pytest-cov -pyyaml==5.4.1 +pyyaml==6.0.1 # via # bandit # dparse