mirror of
https://github.com/mnaberez/py65.git
synced 2024-12-27 09:30:37 +00:00
Fix running Python 2 on CI
This commit is contained in:
parent
db247b9765
commit
55eef25998
32
.github/workflows/main.yml
vendored
32
.github/workflows/main.yml
vendored
@ -2,13 +2,36 @@ name: Run all tests
|
|||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
env:
|
||||||
|
PIP: "env PIP_DISABLE_PIP_VERSION_CHECK=1
|
||||||
|
PYTHONWARNINGS=ignore:DEPRECATION
|
||||||
|
pip --no-cache-dir"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
tests_py27:
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
container: python:2.7
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Show Python version
|
||||||
|
run: python -V
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: $PIP install setuptools
|
||||||
|
|
||||||
|
- name: Run the tests
|
||||||
|
run: python setup.py test -q
|
||||||
|
|
||||||
|
build_py3x:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [2.7, 3.6, 3.7, 3.8, 3.9, "3.10", 3.11]
|
python-version: [3.6, 3.7, 3.8, 3.9, "3.10", 3.11]
|
||||||
os: [ubuntu-20.04, windows-2019]
|
os: [ubuntu-20.04]
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
@ -23,5 +46,8 @@ jobs:
|
|||||||
- name: Show Python version
|
- name: Show Python version
|
||||||
run: python -V
|
run: python -V
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: $PIP install setuptools
|
||||||
|
|
||||||
- name: Run the tests
|
- name: Run the tests
|
||||||
run: python setup.py test -q
|
run: python setup.py test -q
|
||||||
|
Loading…
Reference in New Issue
Block a user