Update monty everywhere #95
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: Run tests | |
strategy: | |
matrix: | |
os: | |
- ubuntu-20.04 | |
dc: | |
- dmd-2.108.1 | |
- dmd-2.101.2 | |
- ldc-1.38.0 | |
- ldc-1.30.0 | |
python-version: | |
#- '3.12' | |
- '3.10' | |
- '3.9' | |
- '3.8' | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install package dependencies | |
run: | | |
sudo apt-get update -y -qq | |
sudo apt-get install -y -qq libclang-10-dev clang | |
- name: Install D compiler | |
# must go before setting LD_LIBRARY_PATH for Python since this overrides it | |
uses: dlang-community/[email protected] | |
with: | |
compiler: ${{ matrix.dc }} | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Python env vars | |
run: | | |
echo "PYTHON_INCLUDE_DIR=${{ env.pythonLocation }}/include/python${{ matrix.python-version }}" >> $GITHUB_ENV | |
echo "PYTHON_LIB_DIR=${{ env.pythonLocation }}/lib" >> $GITHUB_ENV | |
echo "PYD_LIBPYTHON_DIR=${{ env.pythonLocation }}/lib" >> $GITHUB_ENV | |
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${{ env.pythonLocation }}/lib" >> $GITHUB_ENV | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
# - name: Install dotnet | |
# run: | | |
# wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb | |
# sudo dpkg -i packages-microsoft-prod.deb | |
# sudo apt-get install apt-transport-https | |
# sudo apt-get update | |
# sudo apt-get install dotnet-sdk-2.1 | |
- name: Run tests | |
shell: bash | |
run: ci/test-all.sh | |
env: | |
PYD_LIBPYTHON: python${{ matrix.python-version }} | |
LD_RUN_PATH: $PYTHON_LIB_DIR | |
LIBRARY_PATH: /usr/lib/llvm-10/lib | |
- uses: codecov/codecov-action@v4 |