From c12eb2b3119b8bedbcd2b5829219d0bac37f8df2 Mon Sep 17 00:00:00 2001 From: Alex Wolf Date: Tue, 22 Aug 2023 12:05:31 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Try=20to=20simplify=20build.yml?= =?UTF-8?q?=20(#9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 43 ++++++------------------------------- 1 file changed, 6 insertions(+), 37 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1543435..dd94b57 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }}