Skip to content

Commit

Permalink
Cleanup codestyle workflow (#2860)
Browse files Browse the repository at this point in the history
remove redundant environment setup steps with setup_env action
  • Loading branch information
KasukabeDefenceForce authored Oct 28, 2024
1 parent 6e5ae60 commit 494d625
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,10 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- name: Download Lock File
run: wget -q https://raw.githubusercontent.com/tardis-sn/tardis/master/conda-linux-64.lock

- name: Generate Cache Key
run: |
file_hash=$(cat conda-linux-64.lock | shasum -a 256 | cut -d' ' -f1)
echo "file_hash=$file_hash" >> "${GITHUB_OUTPUT}"
id: cache-environment-key

- uses: mamba-org/setup-micromamba@v1
- name: Setup environment
uses: ./.github/actions/setup_env
with:
environment-file: conda-linux-64.lock
cache-environment-key: ${{ steps.cache-environment-key.outputs.file_hash }}
cache-downloads-key: ${{ steps.cache-environment-key.outputs.file_hash }}
environment-name: tardis
cache-environment: true
cache-downloads: true
os-label: linux-64

- name: Show statistics pull request
if: github.event_name == 'pull_request_target'
Expand Down

0 comments on commit 494d625

Please sign in to comment.