Skip to content

Commit

Permalink
👷 Try to simplify build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
falexwolf committed Aug 17, 2023
1 parent dc9a003 commit 0cb362c
Showing 1 changed file with 7 additions and 33 deletions.
40 changes: 7 additions & 33 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,63 +14,37 @@ 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

- name: Install Python dependencies
run: |
python -m pip install -U pip
pip install -U laminci
- run: sudo apt-get -y install graphviz
- 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 0cb362c

Please sign in to comment.