Skip to content

Commit

Permalink
For #513 and #515, added job support for 3.11 and currently supported
Browse files Browse the repository at this point in the history
versions of python
  • Loading branch information
comrumino committed Nov 19, 2022
1 parent 40b6eb3 commit fbfbf0c
Showing 1 changed file with 35 additions and 29 deletions.
64 changes: 35 additions & 29 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,42 @@ on:
branches: [ master ]

jobs:
unittest-3-10:
python-unittest-all-versions:

runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12.0-alpha.1"]

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools flake8
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
echo "PYTHONPATH=${PYTHONPATH}:/home/runner/work/rpyc" >> $GITHUB_ENV
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Init ssh settings
run: |
mkdir -pv ~/.ssh
chmod 700 ~/.ssh
echo NoHostAuthenticationForLocalhost yes >> ~/.ssh/config
echo StrictHostKeyChecking no >> ~/.ssh/config
ssh-keygen -q -f ~/.ssh/id_rsa -N ''
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
uname -a
- name: Test with unittest
run: |
python -m unittest discover -s ./rpyc ./tests
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4

with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools flake8
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
echo "PYTHONPATH=${PYTHONPATH}:/home/runner/work/rpyc" >> $GITHUB_ENV
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Init ssh settings
run: |
mkdir -pv ~/.ssh
chmod 700 ~/.ssh
echo NoHostAuthenticationForLocalhost yes >> ~/.ssh/config
echo StrictHostKeyChecking no >> ~/.ssh/config
ssh-keygen -q -f ~/.ssh/id_rsa -N ''
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
uname -a
- name: Test with unittest
run: |
python -m unittest discover -s ./rpyc ./tests

0 comments on commit fbfbf0c

Please sign in to comment.