trick/.github/workflows/python_tests_macos.yml

53 lines
1.5 KiB
YAML
Raw Normal View History

2021-08-05 17:02:56 +00:00
name: Python Tests MacOS
2021-07-29 00:35:38 +00:00
on:
push:
paths-ignore:
- 'docs/**'
- '.github/workflows/**'
2021-08-05 17:02:56 +00:00
- '!.github/workflows/python_tests_macos.yml'
2021-07-29 00:35:38 +00:00
pull_request:
jobs:
macOS:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@master
- name: Install python
run: |
brew install python
2021-07-29 01:33:46 +00:00
python3 -m ensurepip --upgrade
pip3 install virtualenv
python3 --version
pip3 --version
2021-07-29 00:35:38 +00:00
- name: Install gtest
run: |
wget https://github.com/google/googletest/archive/release-1.8.0.tar.gz
tar xzvf release-1.8.0.tar.gz
cd googletest-release-1.8.0/googletest
cmake .
make
make install
- name: Install dependencies
run: |
# sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.15.pkg -target /
brew install --cask xquartz
2021-08-05 17:02:56 +00:00
brew install llvm@11 swig udunits openmotif maven python-tk
2021-07-29 00:35:38 +00:00
brew link llvm llvm@11
2021-07-29 00:40:52 +00:00
- name: Create testing environment
run: |
cd share/trick/pymods/trick/
2021-07-29 01:33:46 +00:00
python3 -m virtualenv .venv && . .venv/bin/activate && pip install -r requirements.txt
2021-07-29 00:35:38 +00:00
- name: Build Trick
run: |
export MAKEFLAGS=-j4
./configure
make
- name: Run Civet Tests
run: |
2021-08-05 17:02:56 +00:00
cd share/trick/pymods/trick/
. .venv/bin/activate
./run_tests.py
2021-07-29 02:03:40 +00:00
env:
2021-08-05 17:02:56 +00:00
TRICK_HOME: "${{ github.workspace }}"