This repository has been archived by the owner on Dec 16, 2024. It is now read-only.
updated poetry tp 1.8.0 #179
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check if setup.py is up to date | |
on: | |
push: | |
# This way it only triggers on branch pushes, | |
# and ignores releases that push a tag. | |
tags-ignore: | |
- '**' | |
branches-ignore: | |
- github-pages/* | |
jobs: | |
check_setup_py: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [3.8] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: abatilo/actions-poetry@v2 | |
with: | |
poetry-version: 1.8.0 | |
- name: Poetry install | |
run: poetry install | |
- name: Run packaging update | |
run: bash githooks/update_setup_py.sh | |
- name: Show changes on working copy | |
run: git status --porcelain=v1 -uno | |
- name: Show diff on working copy | |
run: git diff --cached; cat setup.py | |
- name: Check if setup.py changed | |
run: | | |
[ -z "$(git status --porcelain=v1 -uno 2>/dev/null)" ] | |
- name: Check if setup.py works | |
run: pip install . |