Skip to content

Commit

Permalink
Merge pull request #419 from maresb/fetch-depth-0
Browse files Browse the repository at this point in the history
Set fetch-depth=0 in checkout for publish workflow
  • Loading branch information
maresb authored May 27, 2023
2 parents abfc009 + 384fbdf commit 2c3fef3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9

- name: Get tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
shell: bash

- name: build
run: |
python -m pip install wheel twine build
Expand All @@ -39,7 +37,7 @@ jobs:

- name: Publish a Python distribution to PyPI
if: ${{ github.event_name == 'release' }}
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@v1.8.6
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}
4 changes: 2 additions & 2 deletions tests/test_conda_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,9 @@ def include_dev_dependencies(request: Any) -> bool:
@pytest.fixture(
scope="session",
params=[
pytest.param("conda"),
pytest.param("conda", marks=pytest.mark.skip(reason="slow")),
pytest.param("mamba"),
pytest.param("micromamba"),
pytest.param("micromamba", marks=pytest.mark.skip(reason="flaky, see #416")),
],
)
def _conda_exe_type(request: Any) -> str:
Expand Down

0 comments on commit 2c3fef3

Please sign in to comment.