Skip to content

Add python version #180

Add python version

Add python version #180

Workflow file for this run

name: CI tests
on: [push]
jobs:
build:
name: clingo ${{ matrix.python-version }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
python-version: ['3.7']
include:
- os: 'ubuntu-latest'
env_file: '.github/tests/linux-env.yml'
- os: 'macos-latest'
env_file: '.github/tests/macos-env.yml'
- os: 'windows-latest'
env_file: '.github/tests/windows-env.yml'
steps:
- uses: actions/checkout@v2
- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
activate-environment: clingo
python-version: ${{ matrix.python-version }}
environment-file: ${{ matrix.env_file }}
- name: Checkout clingo-sys branch test-clingo-wip
run: |
git clone https://github.com/potassco/clingo-sys.git ./clingo-sys
cd clingo-sys
git checkout st/test-clingo-wip
git submodule update --init --recursive
cd clingo
git checkout wip
- name: Build
run: cargo build --features=static-linking,derive --verbose
- name: Run tests
run: |
cargo test --features=static-linking,derive --verbose