Skip to content

Commit

Permalink
Update git hash.
Browse files Browse the repository at this point in the history
  • Loading branch information
arnikz committed Sep 12, 2024
1 parent c7a9c25 commit 29588a2
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 1 deletion.
59 changes: 59 additions & 0 deletions .github/workflows/ci.yaml.new
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: CI
on:
push:
pull_request:
schedule:
- cron: "0 0 1 * *" # run monthly
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
modes: ["s", "p"]
schedulers: ["gridengine", "slurm"]
env:
REGISTRY: ghcr.io
NAME: ${{ matrix.schedulers }}-${{ matrix.modes }}
IMAGE: ${{ github.repository_owner }}/sv-callers-${{ matrix.schedulers }}
TAG: "1.2.2"
ARGS: 0 ${{ matrix.modes }} ${{ matrix.schedulers }}
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.7"
- name: Python info
run: |
which python
python --version
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r test-requirements.txt
- name: Show pip list
run: pip list
- name: Run unit tests
run: |
pytest --cov=helper_functions --cov-report=xml
mv coverage.xml ${{ github.workspace }}
working-directory: workflow
- name: Log into registry
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run workflow
run: |
docker run -d -p 10000:22 --name $NAME ${REGISTRY}/${IMAGE,,}:${TAG}
sleep 10
docker ps -a
docker exec -u xenon -t $NAME bash -c "cd sv-callers && ./run.sh $ARGS"
- name: Upload coverage report to Codacy
uses: codacy/codacy-coverage-reporter-action@master
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.xml
2 changes: 1 addition & 1 deletion .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
env:
REGISTRY: ghcr.io
GIT_COMMIT: "f68b188"
GIT_COMMIT: "c7a9c25"
TAG: 1.1.0
NAME: piqmie
steps:
Expand Down

0 comments on commit 29588a2

Please sign in to comment.