Skip to content

Updated dockerfile to python 3.13, removed cache from pip3 to reduce size of the docker image #56

Updated dockerfile to python 3.13, removed cache from pip3 to reduce size of the docker image

Updated dockerfile to python 3.13, removed cache from pip3 to reduce size of the docker image #56

Workflow file for this run

name: Continuous Integration
on:
workflow_dispatch: null
push:
pull_request:
jobs:
docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag linode/cli:$(date +%s) --build-arg="github_token=$GITHUB_TOKEN"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
lint:
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v4
- name: setup python 3
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: install dependencies
run: make install
- name: run linter
run: make lint
unit-tests-on-ubuntu:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.9","3.10","3.11", "3.12", "3.13" ]
steps:
- name: Clone Repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: pip install -U certifi
- name: Install Package
run: make install
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run the unit test suite
run: make test
unit-tests-on-windows:
runs-on: windows-latest
steps:
- name: Clone Repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install Python dependencies
run: pip install -U certifi
- name: Install Package
shell: pwsh
run: |
make install
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run the unit test suite
run: make test