Merge pull request #560 from obfusk/x86-ci

CI: added x86 workflow
This commit is contained in:
Gabriel Pettier 2020-10-21 23:52:10 +02:00 committed by GitHub
commit d2740a86cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 58 additions and 0 deletions

58
.github/workflows/push-x86.yml vendored Normal file
View File

@ -0,0 +1,58 @@
on: push
name: Continuous Integration (x86)
jobs:
Tests:
name: base
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.6, 3.7, 3.8, 3.9]
container:
image: i386/python:${{ matrix.python }}-buster
steps:
- name: info
run: |
linux32 sh -ec '
cat /etc/*release || true
uname -a
git version
python --version
'
- name: checkout
run: |
linux32 sh -ec '
git init .
git remote add origin https://github.com/$GITHUB_REPOSITORY
git config --local gc.auto 0
git fetch --no-tags --prune --progress --no-recurse-submodules \
--depth=1 origin +$GITHUB_SHA:refs/remotes/origin/${GITHUB_REF##*/}
git checkout --progress --force -B ${GITHUB_REF##*/} \
refs/remotes/origin/${GITHUB_REF##*/}
git log -1 --format=%H
'
- name: setup java
run: |
linux32 sh -ec '
apt update
apt install -y openjdk-11-jdk-headless ant
java -version
'
env:
DEBIAN_FRONTEND: noninteractive
- name: install
run: |
linux32 sh -ec '
pip install --timeout=120 -U setuptools cython
pip install --timeout=120 .[dev,ci]
'
- name: test
run: |
linux32 sh -ec '
ant all
cd tests
CLASSPATH=../build/test-classes:../build/classes pytest -v
'