From 04536c43df576dadd3a7760fdc98cc478f89f2db Mon Sep 17 00:00:00 2001 From: Kai Siren Date: Sun, 19 Nov 2023 00:32:28 -0500 Subject: [PATCH] checkpoint-kai-1700371948 --- .github/workflows/action.yml | 3 +++ .github/workflows/main.yml | 1 + makefile | 16 ++++++++-------- 3 files changed, 12 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/action.yml diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml new file mode 100644 index 0000000..80f4382 --- /dev/null +++ b/.github/workflows/action.yml @@ -0,0 +1,3 @@ +runs: + using: docker + image: Dockerfile diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 920c841..865cfbd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,5 +11,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - run: make pyenv-ubuntu - run: make install - run: invoke test diff --git a/makefile b/makefile index 00ceff5..b5ca595 100644 --- a/makefile +++ b/makefile @@ -1,16 +1,16 @@ help: ## Show this help. @egrep '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' -ifdef CI -python: # python should already be installed in CI - python --version -else -python: # install python - pyenv install --skip-existing -endif +pyenv-ubuntu: ## install pyenv on ubuntu + sudo apt-get update + sudo apt-get install -y make build-essential libssl-dev zlib1g-dev \ + libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \ + libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev \ + liblzma-dev python-openssl git + curl https://pyenv.run | bash install: ## install python, and python packages - $(MAKE) python + pyenv install --skip-existing pip install invoke pyyaml python -m venv venv ./venv/bin/pip install --upgrade pip pipenv