diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 97d1d4a..b7c4ee8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,10 +22,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install poetry run: pipx install poetry - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: "3.10" @@ -33,7 +33,7 @@ jobs: run: pip install poethepoet pre-commit safety # NOTE: using custom cache, to include pre-commit linters + deps - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: | ~/.cache/pre-commit @@ -53,10 +53,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install poetry run: pipx install poetry - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: "3.10" cache: "poetry" @@ -77,10 +77,10 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install poetry run: pipx install poetry - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} cache: "poetry" @@ -99,10 +99,10 @@ jobs: contents: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install poetry run: pipx install poetry - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: "3.10" cache: "poetry" diff --git a/src/fair_python_cookiecutter/template/post_gen_project.sh b/src/fair_python_cookiecutter/template/post_gen_project.sh deleted file mode 100644 index 5bec597..0000000 --- a/src/fair_python_cookiecutter/template/post_gen_project.sh +++ /dev/null @@ -1,14 +0,0 @@ -: # Magic to deactivate current Python venv (if one is enabled) in a cross-platform way -: # See https://stackoverflow.com/questions/17510688/single-script-to-run-in-both-windows-batch-and-linux-bash -# ---- bash-specific code ---- -# venv=$(python -c "import sys; print(sys.prefix if sys.base_prefix != sys.prefix else '')") -if [[ -n "$venv" ]]; then - echo INFO: Deactivating currently active virtual environment "$venv" - source "$venv/bin/activate" # make sure we have 'deactivate' available - deactivate -fi -# ---------------------------- - - -echo "--------> All done! Your project repository is ready :) <--------" - diff --git a/src/fair_python_cookiecutter/template/{{ cookiecutter.project_slug }}/.github/workflows/ci.yml b/src/fair_python_cookiecutter/template/{{ cookiecutter.project_slug }}/.github/workflows/ci.yml index 3600304..28a0716 100644 --- a/src/fair_python_cookiecutter/template/{{ cookiecutter.project_slug }}/.github/workflows/ci.yml +++ b/src/fair_python_cookiecutter/template/{{ cookiecutter.project_slug }}/.github/workflows/ci.yml @@ -22,10 +22,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install poetry run: pipx install poetry - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: "3.10" @@ -33,7 +33,7 @@ jobs: run: pip install poethepoet pre-commit safety # NOTE: using custom cache, to include pre-commit linters + deps - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: | ~/.cache/pre-commit @@ -53,10 +53,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install poetry run: pipx install poetry - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: "3.10" cache: "poetry" @@ -77,10 +77,10 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install poetry run: pipx install poetry - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} cache: "poetry" @@ -99,10 +99,10 @@ jobs: contents: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install poetry run: pipx install poetry - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: "3.10" cache: "poetry"