|
29 | 29 | strategy: |
30 | 30 | matrix: |
31 | 31 | os: [ubuntu-latest, windows-latest, macos-latest] |
32 | | - python_version: [3.6, 3.7, 3.8, 3.9, "3.10-dev", "pypy3"] |
| 32 | + python_version: [3.6, 3.7, 3.8, 3.9, "3.10", "3.11-dev", "pypy3"] |
33 | 33 | exclude: |
34 | 34 | # Do not test all minor versions on all platforms, especially if they |
35 | 35 | # are not the oldest/newest supported versions |
|
94 | 94 | token: ${{ secrets.CODECOV_TOKEN }} |
95 | 95 | file: ./coverage.xml |
96 | 96 |
|
97 | | - python-nightly: |
98 | | - runs-on: ubuntu-18.04 |
99 | | - # This entry is made optional for now, see https://github.com/cloudpipe/cloudpickle/pull/420 |
100 | | - if: "contains(github.event.pull_request.labels.*.name, 'ci python-nightly')" |
101 | | - steps: |
102 | | - - uses: actions/checkout@v1 |
103 | | - - name: Install Python from ppa:deadsnakes/nightly |
104 | | - run: | |
105 | | - sudo add-apt-repository ppa:deadsnakes/nightly |
106 | | - sudo apt update |
107 | | - sudo apt install python3.11 python3.11-venv python3.11-dev |
108 | | - python3.11 -m venv nightly-venv |
109 | | - echo "$PWD/nightly-venv/bin" >> $GITHUB_PATH |
110 | | - - name: Display Python version |
111 | | - run: python -c "import sys; print(sys.version)" |
112 | | - - name: Install project and dependencies |
113 | | - run: | |
114 | | - set -e |
115 | | - python -m pip install --upgrade pip |
116 | | - python -m pip install -r dev-requirements.txt |
117 | | - python -m pip install -e . |
118 | | - python ci/install_coverage_subprocess_pth.py |
119 | | - - name: Generate old pickles (backward compat) |
120 | | - shell: bash |
121 | | - run: | |
122 | | - git_head=$(git rev-parse HEAD) |
123 | | - cp tests/generate_old_pickles.py tests/_generate_old_pickles.py |
124 | | - git checkout v1.4.1 |
125 | | - python tests/_generate_old_pickles.py |
126 | | - git checkout ${git_head} |
127 | | - - name: Test with pytest |
128 | | - run: | |
129 | | - COVERAGE_PROCESS_START=$GITHUB_WORKSPACE/.coveragerc \ |
130 | | - PYTHONPATH='.:tests' python -m pytest -r s |
131 | | - coverage combine --append |
132 | | - coverage xml -i |
133 | | - - name: Publish coverage results |
134 | | - uses: codecov/codecov-action@v1 |
135 | | - with: |
136 | | - token: ${{ secrets.CODECOV_TOKEN }} |
137 | | - file: ./coverage.xml |
138 | | - |
139 | 97 | distributed-downstream-build: |
140 | 98 | runs-on: ubuntu-latest |
141 | 99 | if: "contains(github.event.pull_request.labels.*.name, 'ci distributed') || contains(github.event.pull_request.labels.*.name, 'ci downstream')" |
|
0 commit comments