1
0
mirror of https://github.com/mnaberez/py65.git synced 2024-06-06 20:29:34 +00:00
py65/.github/workflows/main.yml

107 lines
2.6 KiB
YAML
Raw Normal View History

2021-01-03 19:31:52 +00:00
name: Run all tests
2022-09-30 20:55:36 +00:00
on: [push, pull_request]
2021-01-03 19:31:52 +00:00
2023-11-18 23:05:09 +00:00
env:
PIP: "env PIP_DISABLE_PIP_VERSION_CHECK=1
PYTHONWARNINGS=ignore:DEPRECATION
pip --no-cache-dir"
2021-01-03 19:31:52 +00:00
jobs:
2023-11-18 23:05:09 +00:00
tests_py27:
runs-on: ubuntu-20.04
container: python:2.7
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
2023-11-18 23:05:09 +00:00
- name: Show Python version
run: python -V
- name: Install dependencies
run: $PIP install setuptools pexpect
2023-11-18 23:05:09 +00:00
- name: Run the tests
run: python setup.py test -q
- name: Run the end-to-end tests
run: END_TO_END=1 python setup.py test -q
2023-11-19 00:34:11 +00:00
build_py34:
runs-on: ubuntu-20.04
container: python:3.4
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
# does not work with actions/checkout@v4:
# /usr/bin/docker exec 289170dbefc90d2ba94a09f3dcb70c42c1e1b29a5e877cd533b26ebf73ca82fa sh -c "cat /etc/*release | grep ^ID"
# /__e/node20/bin/node: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by /__e/node20/bin/node)
# /__e/node20/bin/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /__e/node20/bin/node)
# /__e/node20/bin/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /__e/node20/bin/node)
2023-11-19 00:34:11 +00:00
- name: Show Python version
run: python -V
- name: Install dependencies
run: $PIP install setuptools pexpect
2023-11-19 00:34:11 +00:00
- name: Run the tests
run: python setup.py test -q
- name: Run the end-to-end tests
run: END_TO_END=1 python setup.py test -q
2023-11-19 00:34:11 +00:00
build_py35:
runs-on: ubuntu-20.04
container: python:3.5
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
2023-11-19 00:34:11 +00:00
- name: Show Python version
run: python -V
- name: Install dependencies
run: $PIP install setuptools pexpect
2023-11-19 00:34:11 +00:00
- name: Run the tests
run: python setup.py test -q
- name: Run the end-to-end tests
run: END_TO_END=1 python setup.py test -q
2023-11-18 23:05:09 +00:00
build_py3x:
2021-01-03 19:31:52 +00:00
strategy:
fail-fast: false
matrix:
2023-11-19 00:39:39 +00:00
python-version: [3.6, 3.7, 3.8, 3.9, "3.10", 3.11, 3.12]
2023-11-18 23:05:09 +00:00
os: [ubuntu-20.04]
2021-12-27 00:16:29 +00:00
runs-on: ${{ matrix.os }}
2021-01-03 19:31:52 +00:00
steps:
- uses: actions/checkout@v4
2021-01-03 19:31:52 +00:00
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
2021-01-03 19:31:52 +00:00
with:
python-version: ${{ matrix.python-version }}
- name: Show Python version
run: python -V
2023-11-18 23:05:09 +00:00
- name: Install dependencies
run: $PIP install setuptools pexpect
2023-11-18 23:05:09 +00:00
2021-01-03 19:31:52 +00:00
- name: Run the tests
run: python setup.py test -q
- name: Run the end-to-end tests
run: END_TO_END=1 python setup.py test -q