Skip to content

Commit

Permalink
workflow fixes 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximilien Le Clei committed Oct 15, 2023
1 parent 558c9d8 commit ff6b00d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 27 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/container-build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,9 @@ jobs:
steps:
- name: Checkout the GitHub repo
uses: actions/checkout@v3
- name: Build the container image
- name: Build the CNeuroMax image
run: podman build -t cneuromod/cneuromax:latest -f Containerfile .
- name: Login to the registry
uses: redhat-actions/podman-login@v1
with:
registry: docker.io
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push the container image
run: >
podman push cneuromod/cneuromax:latest
docker://docker.io/cneuromod/cneuromax:latest
- name: Remove dangling images
run: podman image prune
- name: Push the CNeuroMax image to Docker Hub
run: podman push docker.io/cneuromod/cneuromax:latest
2 changes: 1 addition & 1 deletion .github/workflows/container-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
steps:
- name: Checkout the GitHub repo
uses: actions/checkout@v3
- name: Build the container image
- name: Build the tentative CNeuroMax image
run: podman build -f Containerfile .
20 changes: 5 additions & 15 deletions .github/workflows/typecheck-unittest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,14 @@ permissions:

jobs:
typecheck-unittest:
runs-on: ubuntu-22.04
runs-on: self-hosted
steps:
- name: Install OpenMPI
run: sudo apt install -y libopenmpi-dev
- name: Pull the container image
run: podman pull docker.io/cneuromod/cneuromax:latest
- name: Run the container image
run: podman run --rm -it docker.io/cneuromod/cneuromax:latest
- name: Checkout the GitHub repo
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Create virtual environment
run: python3 -m venv venv
- name: Activate virtual environment
run: . venv/bin/activate
- name: Install dependencies
run: >
pip install --no-cache-dir --upgrade pip && pip install
--extra-index-url https://download.pytorch.org/whl/cpu -e .
- name: Run mypy
run: mypy --config-file=pyproject.toml cneuromax
- name: Run pytest
Expand Down

0 comments on commit ff6b00d

Please sign in to comment.