Skip to content

Bump actions/upload-artifact from 3 to 4 #119

Bump actions/upload-artifact from 3 to 4

Bump actions/upload-artifact from 3 to 4 #119

Workflow file for this run

name: CI
on:
# We run CI on pushes to the main branch
push:
branches:
- main
# and on all pull requests to the main branch
pull_request:
branches:
- main
# as well as upon manual triggers through the 'Actions' tab of the Github UI
workflow_dispatch:
jobs:
build-and-test:
name: Testing on ${{matrix.os}}
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.11']
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
# setuptools_scm requires a non-shallow clone of the repository
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set up Docker
uses: docker-practice/actions-setup-docker@master
with:
docker_version: '20.10'
docker_channel: 'stable'
- name: Install jupyterlab
run: python -m pip install jupyterlab
- name: Install pytest
run: python -m pip install pytest
- name: Install nodejs
run: python -m pip install nodejs
- name: Change to repository folder
run: cd $GITHUB_WORKSPACE
- name: Install Docker-Kernel
run: |
python -m pip install -e .
- name: Run the installation
run: python -m dockerfile_kernel.install
- name: Run tests
run: |
cd $GITHUB_WORKSPACE/test
pytest test_image_ids.py
pytest test_magics.py