chore: Update building versions #41
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: IElixir CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: | |
- 'master' | |
- 'feature/**' | |
jobs: | |
build: | |
name: Build and test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-22.04] | |
elixir-version: ['1.11.2', '1.14'] | |
otp-version: ['23.1', '25'] | |
python-version: ['3.8', '3.11'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install prerequisites | |
run: | | |
sudo apt install -y libzmq3-dev libsqlite3-dev libssl-dev | |
- name: Set up Elixir | |
uses: actions/setup-elixir@v1 | |
with: | |
elixir-version: ${{ matrix.elixir-version }} | |
otp-version: ${{ matrix.otp-version }} | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install python packages | |
run: | | |
pip install pip --upgrade | |
pip install tornado==4.5.3 | |
pip install jupyter nose | |
git clone -b ielixir https://github.com/pprzetacznik/jupyter_kernel_test.git | |
- name: Restore dependencies cache | |
uses: actions/cache@v2 | |
with: | |
path: deps | |
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} | |
restore-keys: ${{ runner.os }}-mix- | |
- name: Compile IElixir and install | |
run: | | |
mix deps.get | |
mix deps.compile | |
MIX_ENV=dev ./install_script.sh | |
- name: Run tests | |
run: | | |
mix test | |
pushd jupyter_kernel_test | |
MIX_ENV=dev python test_ipython.py | |
popd | |
docs: | |
name: Documentation and coverage reports | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install prerequisites | |
run: | | |
sudo apt install -y libzmq3-dev libsqlite3-dev libssl-dev | |
- name: Set up Elixir | |
uses: actions/setup-elixir@v1 | |
with: | |
elixir-version: '1.14' | |
otp-version: '25' | |
- name: Generate documentation | |
run: | | |
MIX_ENV=docs mix deps.get | |
MIX_ENV=docs mix compile | |
MIX_ENV=docs mix docs | |
MIX_ENV=docs mix inch.report | |
MIX_ENV=test mix coveralls.github |