Update README.md #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build_run_test | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Print basic job parameters | |
run: | | |
echo "🎉 Job triggered by ${{ github.event_name }} event." | |
echo "🐧 Job running on a ${{ runner.os }} server hosted by GitHub!" | |
echo "🔎 Branch: ${{ github.ref }}; repository: ${{ github.repository }}." | |
- name: Set up python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10.14' | |
- name: Upgrade pip and install packages | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
if [ -f requirements.txt ]; then python -m pip install -r requirements.txt; fi | |
- name: Print out python version and packages | |
run: | | |
python --version | |
python -m pip list | |
- name: Convert test notebook | |
run: | | |
python -m jupyter nbconvert --execute --to html 01_test_notebook.ipynb | |
docker: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- | |
name: Build and push | |
uses: docker/build-push-action@v5 | |
with: | |
push: true | |
tags: knutzk/ml-workshop:latest |