Skip to content

Update actions/cache action to v4.0.1 #229

Update actions/cache action to v4.0.1

Update actions/cache action to v4.0.1 #229

Workflow file for this run

---
name: CI
on:
workflow_dispatch:
push:
branches:
- main
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*' # match basic semver tags
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Python
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: 3.11.4
- name: Install build & test dependencies
run: |
pip3 install --disable-pip-version-check --progress-bar off 'poetry'
poetry install --no-ansi --no-interaction
- name: Run linters
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Python
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: 3.11.4
- name: Install build & test dependencies
run: |
pip3 install --disable-pip-version-check --progress-bar off 'poetry'
- name: Cache dependencies
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Build & install
run: poetry build --no-ansi --no-interaction && poetry install --no-ansi --no-interaction
- name: Run tests
run: poetry run pytest --full-trace
- name: Test basic cli elements
run: |
( set -x ; poetry run isup --version ) 1>/dev/null
( set -x ; poetry run isup --help ) 1>/dev/null
release:
runs-on: ubuntu-latest
needs: [lint, test]
steps:
- name: Ship a release
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15
if: startsWith(github.ref, 'refs/tags/v')
with:
files: |
dist/downforeveryone*.whl
dist/downforeveryone*.tar.gz