Skip to content

Lock file maintenance #197

Lock file maintenance

Lock file maintenance #197

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@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
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@646c83fcd040023954eafda54b4db0192ce70507 # v3.0.0
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Python
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
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@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
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