Skip to content

Commit

Permalink
CI building
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Jul 16, 2023
1 parent 240ffa9 commit a791fc2
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 23 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/osx.yml → .github/workflows/osx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
os: [macOS]
python-version: ['3.6', '3.7', '3.8', '3.9']
python-version: ['3.7', '3.8', '3.9']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -22,15 +22,18 @@ jobs:
- name: Install dependencies
run: |
brew install asymptote
python -m pip install --upgrade pip
python3 -m pip install --upgrade pip
# Can comment out when next Mathics core and Mathics-scanner are released
# python -m pip install -e git+https://github.com/Mathics3/mathics-scanner#egg=Mathics-Scanner[full]
# python3 -m pip install -e git+https://github.com/Mathics3/mathics-scanner#egg=Mathics-Scanner[full]
# python -m pip install -e git+https://github.com/Mathics3/mathics-core#egg=Mathics3[full]
python -m pip install Mathics3[full]
git clone https://github.com/Mathics3/mathics-core
(cd mathics-core && pip3 install -e .[full])
(cd mathics-core && bash ./admin-tools/make-op-tables.sh)
# python -m pip install Mathics3[full]
- name: Install mathicsscript
run: |
make
- name: Test mathicsscript
run: |
pip install -r requirements-dev.txt
pip3 install -r requirements-dev.txt
make check
16 changes: 9 additions & 7 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,31 @@ on:

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9']
python-version: ['3.7', '3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get update -qq && sudo apt-get install -qq liblapack-dev llvm-dev asymptote
python -m pip install --upgrade pip
python3 -m pip install --upgrade pip
# Can comment out when next Mathics core and Mathics-scanner are released
# python -m pip install -e git+https://github.com/Mathics3/mathics-scanner#egg=Mathics-Scanner[full]
# python -m pip install -e git+https://github.com/Mathics3/mathics-core#egg=Mathics3[full]
python -m pip install Mathics3[full]
python -m pip install -e .
git clone https://github.com/Mathics3/mathics-core
(cd mathics-core && pip3 install -e .[full])
(cd mathics-core && bash ./admin-tools/make-op-tables.sh)
# python -m pip install Mathics3[full]
- name: Install mathicsscript
run: |
make
- name: Test mathicsscript
run: |
pip install pytest
pip3 install pytest
make check
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,24 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install wheel
choco install llvm --force
python3 -m pip install --upgrade pip
python3 -m pip install wheel
set LLVM_DIR="C:\Program Files\LLVM"
# Can comment out when next Mathics core and Mathics-scanner are released
python -m pip install -e git+https://github.com/Mathics3/mathics-scanner#egg=Mathics-Scanner[full]
python -m pip install -e git+https://github.com/Mathics3/mathics-core#egg=Mathics3[full]
(cd src/mathics3 && bash ./admin-tools/make-op-tables.sh)
# python -m pip install -e git+https://github.com/Mathics3/mathics-scanner#egg=Mathics-Scanner[full]
git clone https://github.com/Mathics3/mathics-core
(cd mathics-core && make)
(cd mathics-core && python -m pip install -e .[full])
# python -m pip install Mathic3[full]
- name: Install mathicsscript
run: |
make
- name: Test mathicsscript
run: |
pip install -r requirements-dev.txt
pip3 install -r requirements-dev.txt
make check
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
*.pyc
*_dis
*~
./mathicsscript/inputrc-no-unicode
./mathicsscript/inputrc-unicode
.idea*
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
Expand All @@ -21,9 +23,7 @@
/.cache
/.coverage
/.eggs
./hypothesis
./mathicsscript/inputrc-no-unicode
./mathicsscript/inputrc-unicode
/.hypothesis
/.mypy_cache
/.pytest_cache
/.python-version
Expand Down

0 comments on commit a791fc2

Please sign in to comment.