Skip to content

Commit

Permalink
👷 Try to simplify build.yml (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
falexwolf authored Aug 22, 2023
1 parent 2b67628 commit c12eb2b
Showing 1 changed file with 6 additions and 37 deletions.
43 changes: 6 additions & 37 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,63 +14,32 @@ jobs:
NXF_ANSI_LOG: false
strategy:
fail-fast: false
matrix:
python-version: ["3.9"]
timeout-minutes: 50

steps:
- name: Checkout main
uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Checkout lndocs
uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
repository: laminlabs/lndocs
ssh-key: ${{ secrets.READ_LNDOCS }}
path: lndocs
ref: main

- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
python-version: "3.10"
cache: "pip"
cache-dependency-path: ".github/workflows/build.yml" # See dependencies below

- name: Install Nextflow
uses: nf-core/setup-nextflow@v1
cache-dependency-path: ".github/workflows/build.yml"
- uses: nf-core/setup-nextflow@v1
with:
version: "latest-stable"

- name: Cache Nextflow output
uses: actions/cache@v2
with:
path: docs/guide/nextflow_rna_seq/rna-seq-results
key: ${{ runner.os }}-nextflow-rna-seq-results

- uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }}

- name: Cache postgres
id: cache-postgres
uses: actions/cache@v3
with:
path: ~/postgres.tar
key: cache-postgres-0
- name: Cache postgres miss
if: steps.cache-postgres.outputs.cache-hit != 'true'
run: docker pull postgres:latest && docker image save postgres:latest --output ~/postgres.tar
- name: Cache postgres use
if: steps.cache-postgres.outputs.cache-hit == 'true'
run: docker image load --input ~/postgres.tar
- run: sudo apt-get -y install graphviz
- name: Install Python dependencies
run: |
python -m pip install -U pip
pip install -U laminci
- run: pip install -U laminci
- uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down

0 comments on commit c12eb2b

Please sign in to comment.