diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml index 3676fcadc62..683c68901af 100644 --- a/.github/workflows/codestyle.yml +++ b/.github/workflows/codestyle.yml @@ -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'