Skip to content

Commit

Permalink
CI: update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
epruesse committed Jul 19, 2024
1 parent df8d099 commit 849de94
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 20 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,25 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
#os: ['ubuntu-latest', 'macos-latest']
python-version: ['3.10']
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0 # full history for setuptools_scm
- uses: actions/cache@v1
env:
CACHE_VERS: 0 # bump to manually reset cache
- uses: conda-incubator/setup-miniconda@v3
with:
path: ~/conda_pkgs_dir
key: ${{runner.os}}-conda-${{env.CACHE_VERS}}-${{hashFiles('environment.yaml')}}
- uses: goanpeca/setup-miniconda@v1
with:
# Don't update conda - performance:
# miniconda-version: 'latest'
# auto-update-conda: true
python-version: ${{ matrix.python-version }}
miniforge-variant: Mambaforge
mamba-version: "*"
use-mamba: true
channels: conda-forge,bioconda
channel-priority: strict
environment-file: environment.yaml
python-version: ${{ matrix.python-version }}
activate-environment: ymp
channel-priority: strict
use-only-tar-bz2: true # needed for caching
- name: Install Twine
run: |
pip install --user twine
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,19 @@ jobs:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0 # full history for setuptools_scm
- uses: conda-incubator/setup-miniconda@v3
with:
# Don't update conda - performance:
# miniconda-version: 'latest'
# auto-update-conda: true
python-version: ${{ matrix.python-version }}
miniforge-variant: Mambaforge
mamba-version: "*"
use-mamba: true
channels: conda-forge,bioconda
channel-priority: strict
environment-file: environment.yaml
python-version: ${{ matrix.python-version }}
activate-environment: ymp
- name: Install
run: |
Expand Down

0 comments on commit 849de94

Please sign in to comment.