Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Python install in CI #1

Merged
merged 7 commits into from
May 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@ jobs:
build_and_test:
strategy:
matrix:
os: [macos-14, macos-13, macos-12]
os: [macos-13, macos-12]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Dependencies
run: brew install nasm && pip3 install toml
- name: Install System Dependencies
run: brew install nasm
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip
python -m pip install toml
- name: Build
run: ./launch MAKE
- name: Test
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ clean:

.PHONY: test
test:
@echo '==> checking python dependencies'
@echo "==> checking python dependencies"
@cd test; $(PY) check_deps.py 2>&1 >/dev/null \
|| (printf '\x1b[31m[!] dependencies not installed\x1b[m\n' && exit 1) \
&& (printf '\x1b[32m==> dependencies installed\x1b[m\n')
@echo '==> testing CLI'
|| (printf "\x1b[31m[!] dependencies not installed\x1b[m\n" && exit 1) \
&& (printf "\x1b[32m==> dependencies installed\x1b[m\n")
@echo "==> testing CLI"
@cd test; $(PY) main.py
@printf '\x1b[32m==> all tests passed!\x1b[m\n'
@printf "\x1b[32m==> all tests passed!\x1b[m\n"

.PHONY: format
format:
Expand Down