Skip to content

Commit

Permalink
Fetch tags in fork on azure pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpre committed May 25, 2024
1 parent 6045bed commit fd5383a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,18 @@ steps:
- checkout: self
fetchDepth: 0 # Fetch all commits for setuptools_scm
fetchTags: true # tags necessary for setuptools_scm
- bash: |
git remote add upstream https://github.com/hyperspy/rosettasciio.git
git fetch upstream --tags
condition: ne(variables['Build.Repository.Name'], 'hyperspy/rosettasciio')
displayName: Fetch tags from hyperspy/rosettasciio
- template: azure_pipelines/clone_ci-scripts_repo.yml@templates
- template: azure_pipelines/install_mambaforge.yml@templates
- template: azure_pipelines/activate_conda.yml@templates
- template: azure_pipelines/setup_anaconda_packages.yml@templates

- bash: |
source activate $ENV_NAME
pip install "hyperspy>=2.0rc0"
pip install --no-deps -e .
conda list
displayName: Install package
Expand Down
2 changes: 1 addition & 1 deletion conda_environment_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ dependencies:
- pytest
- pytest-xdist
- pytest-rerunfailures
- hyperspy-base
- hyperspy-base >=2.0
- setuptools-scm
- filelock

0 comments on commit fd5383a

Please sign in to comment.