fix: define auto_destruction value in tests #188
Workflow file for this run
This file contains hidden or 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_new_version | |
on: | |
push: | |
branches-ignore: | |
- 'main' | |
pull_request: | |
types: [opened, reopened] | |
branches-ignore: | |
- 'main' | |
jobs: | |
tag_repo: | |
name: Check if VERSION has been modified | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- name: Check if VERSION has been modified | |
run: | | |
pip install toml | |
git fetch origin main | |
git show origin/main:pyproject.toml > pyproject.main.toml | |
OLD_VERSION=$(python -c 'import toml; print(toml.load("pyproject.main.toml")["tool"]["poetry"]["version"])') | |
NEW_VERSION=$(python -c 'import toml; print(toml.load("pyproject.toml")["tool"]["poetry"]["version"])') | |
if [ $OLD_VERSION == $NEW_VERSION ]; then echo "You need to update the version !"; exit -1; fi | |
exit 0 |