Skip to content

chore: Upgrade python (#53) #69

chore: Upgrade python (#53)

chore: Upgrade python (#53) #69

Workflow file for this run

---
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Lint with flake8
run: |
flake8
- name: Run tests
run: |
sudo apt-get install -y --no-install-recommends dexdump # required to install exodus-core
pip install -r requirements.txt
python -m unittest
hadolint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hadolint/[email protected]
with:
dockerfile: Dockerfile
docker_build:
if: github.event_name == 'pull_request'
needs: hadolint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up docker buildx
uses: docker/setup-buildx-action@v3
- name: Build
uses: docker/build-push-action@v5
with:
push: false
docker_push:
if: github.event_name == 'push'
needs: hadolint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up docker buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push latest image
uses: docker/build-push-action@v5
with:
push: true
tags: exodusprivacy/exodus-standalone:latest