Skip to content

Commit

Permalink
Merge pull request #193 from scipp/update_gh_actions
Browse files Browse the repository at this point in the history
Update mamba actions in CI
  • Loading branch information
nvaytet authored Aug 9, 2023
2 parents c9f9a68 + 2396290 commit e3f7c27
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 15 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,10 @@ jobs:
fetch-depth: 0 # history required so setuptools_scm can determine version

- name: Setup conda environment
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: 1.1.0
environment-file: environment.yml
cache-env: true
cache-environment: true

- run: python -m pip install --no-deps .
- run: jupyter --paths
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/pr_and_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: 3.8
python-version: '3.8'
- run: python -m pip install --upgrade pip
- run: python -m pip install -r requirements/ci.txt
- run: tox -e static
Expand All @@ -50,11 +50,10 @@ jobs:
fetch-depth: 0 # history required so cmake can determine version

- name: Setup conda environment
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: 1.1.0
environment-file: environment.yml
cache-env: true
cache-environment: true

- run: conda develop src
- run: python -m pytest -v tests
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,10 @@ jobs:
fetch-depth: 0 # history required so cmake can determine version

- name: Setup conda environment
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: 1.1.0
environment-file: false
environment-name: build-release
channels: conda-forge
extra-specs: |
create-args: >-
python=3.8
conda-build
boa
Expand All @@ -51,7 +48,7 @@ jobs:

- uses: actions/setup-python@v3
with:
python-version: 3.8
python-version: '3.8'

- run: python -m pip install --upgrade pip
- run: python -m pip install -r requirements/wheels.txt
Expand All @@ -72,10 +69,10 @@ jobs:
if: github.event_name == 'release' && github.event.action == 'published'

steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.10
python-version: '3.8'
- run: conda install -c conda-forge --yes anaconda-client
- run: anaconda --token ${{ secrets.ANACONDATOKEN }} upload --user scipp --label main $(ls conda-package-*/*/*.tar.bz2)
- uses: actions/setup-python@v3
Expand Down
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ dependencies:
- plopp=23.05.1
- pooch=1.6.0
- pytest=7.2.1
- python=3.8.*
- python-graphviz=0.20.1
- pythreejs=2.4.1
- scipp==23.07.0
Expand Down

0 comments on commit e3f7c27

Please sign in to comment.