Commit f74af6c5 authored by Reinout van Rees's avatar Reinout van Rees Committed by GitHub

Merge pull request #494 from gotcha/master

Use Github Actions for smoke tests
parents e2182e69 b6635825
sandbox/bin/python:
pip install virtualenv
virtualenv sandbox
sandbox/bin/buildout: sandbox/bin/python
sandbox/bin/python setup.py develop
[buildout]
extensions = buildout.environ
environ-required =
PACKAGE
parts = test
sandbox = ${buildout:directory}/../../sandbox
eggs-directory = ${buildout:sandbox}/eggs
download-cache = ${buildout:sandbox}/downloads
abi-tag-eggs = false
[test]
recipe = zc.recipe.egg
eggs = ${__environ__:PACKAGE}
name: Test generating scripts
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [2.7, 3.5, 3.6, 3.7]
package: [zest.releaser, pyspf]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Setup buildout virtualenv
run: |
make -f .github/workflows/Makefile sandbox/bin/buildout
- name: Run buildout
env:
PACKAGE: ${{matrix.package}}
run: |
sandbox/bin/buildout -v -c .github/workflows/scripts.cfg annotate buildout
sandbox/bin/buildout -c .github/workflows/scripts.cfg
- name: Check eggs
run: |
ls -al sandbox/eggs
ls -al sandbox/downloads/dist
name: Test generating scripts with setuptools head
on:
schedule:
- cron: '0 0,12 * * *'
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [2.7, 3.5, 3.6, 3.7]
package: [zest.releaser, pyspf]
steps:
- uses: actions/checkout@v1
- name: checkout setuptools
run: |
git clone https://github.com/pypa/setuptools.git
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Setup buildout virtualenv
run: |
make -f .github/workflows/Makefile sandbox/bin/buildout
- name: Use setuptools develop
env:
PYTHON_VERSION: ${{matrix.python-version}}
run: |
./sandbox/bin/pip uninstall -y setuptools
cd setuptools
../sandbox/bin/python bootstrap.py
../sandbox/bin/python setup.py develop
ls ../sandbox/lib/python${PYTHON_VERSION}/site-packages
- name: Run buildout
env:
PACKAGE: ${{matrix.package}}
run: |
sandbox/bin/buildout -v -c .github/workflows/scripts.cfg annotate buildout
sandbox/bin/buildout -c .github/workflows/scripts.cfg
- name: Check eggs
run: |
ls -al sandbox/eggs
ls -al sandbox/downloads/dist
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment