Skip to content

Commit

Permalink
Update GHA scripts
Browse files Browse the repository at this point in the history
Docker image is being built manually because the action makes some
jobs to fail intermittently:
actions/checkout#794
docker/build-push-action#660
  • Loading branch information
cgr71ii committed Aug 3, 2022
1 parent d70bed6 commit 69b0241
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test-bitextor-only.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
java-version: 8
java-package: jdk
architecture: x64
- uses: actions/checkout@v3.0.2
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Install additional python requirements
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
java-version: 8
java-package: jdk
architecture: x64
- uses: actions/checkout@v3.0.2
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Install additional python requirements
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3.0.2
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/conda-build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
python-version: 3.8.5
activate-environment: bitextor-build
channels: conda-forge,bitextor,bioconda,dmnapolitano,esarrias
- uses: actions/checkout@v3.0.2
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Create Bitextor conda build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/conda-intensive-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
python-version: 3.8.5
activate-environment: bitextor-tests
channels: conda-forge,bitextor,bioconda,dmnapolitano,esarrias
- uses: actions/checkout@v3.0.2
- uses: actions/checkout@v3
if: ${{ env.CREATE_BUILD == 'true' }}
with:
submodules: 'recursive'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deferred.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
java-version: 8
java-package: jdk
architecture: x64
- uses: actions/checkout@v3.0.2
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Install additional python requirements
Expand Down
18 changes: 7 additions & 11 deletions .github/workflows/docker-intensive-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ jobs:
- name: Other tests
test_id: "0x80"
steps:
- uses: actions/checkout@v3
if: ${{ env.TEST_ID == 'all' || env.TEST_ID == matrix.test_id }}
with:
submodules: 'recursive'
ref: ${{ env.BUILD_REF }}
- name: Set up Docker Buildx
if: ${{ env.TEST_ID == 'all' || env.TEST_ID == matrix.test_id }}
uses: docker/setup-buildx-action@v2
Expand All @@ -73,19 +78,10 @@ jobs:
run: |
docker pull hello-world > /dev/null
docker run --rm hello-world > /dev/null
- uses: actions/checkout@v3.0.2
if: ${{ env.TEST_ID == 'all' || env.TEST_ID == matrix.test_id }}
with:
submodules: 'recursive'
ref: ${{ env.BUILD_REF }}
- name: Build and export to Docker
if: ${{ env.CREATE_BUILD == 'true' && (env.TEST_ID == 'all' || env.TEST_ID == matrix.test_id) }}
uses: docker/build-push-action@v3
with:
context: .
load: true # If true, once the image has been pulled or built, it will be available from docker
push: false
tags: ${{ env.DOCKER_IMAGE_TAG }}
run: |
docker build --tag "$DOCKER_IMAGE_TAG" .
- name: Pull image
if: ${{ env.CREATE_BUILD == 'false' && (env.TEST_ID == 'all' || env.TEST_ID == matrix.test_id) }}
run: |
Expand Down

0 comments on commit 69b0241

Please sign in to comment.