Bump zipp from 1.2.0 to 3.19.1 #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 10 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.8", "pypy-3.9"] | |
os: [ubuntu-20.04, ubuntu-22.04, macOS-latest, windows-latest] | |
include: | |
- python-version: "2.7" | |
os: "ubuntu-20.04" | |
- python-version: "2.7" | |
os: "ubuntu-22.04" | |
steps: | |
- uses: actions/[email protected] | |
- name: Set up Python ${{ matrix.python-version }} (github action) | |
if: matrix.python-version != '2.7' | |
uses: actions/[email protected] | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
- name: Set up Python ${{ matrix.python-version }} (apt-get) | |
if: matrix.python-version == '2.7' | |
# since actions/python-versions removed 2.7 from versions-manifest.json | |
# and also deleted all the python 2.7 binary artifacts, | |
# we have to apt-get install python2 | |
# https://github.com/actions/setup-python/issues/672 | |
run: | | |
set -eux | |
sudo apt-get update | |
sudo apt-get install -y python2 python3-virtualenv | |
virtualenv -p python2 "${{ runner.temp }}/venv" | |
# Fix for error in ubuntu-20.04 pip (fixed in ubuntu-22.04) | |
# can't find '__main__' module in '/usr/share/python-wheels/pep517-0.8.2-py2.py3-none-any.whl/pep517/_in_process.py | |
# https://github.com/pypa/pip/issues/7874#issuecomment-605520503 | |
"${{ runner.temp }}/venv/bin/pip" install --force-reinstall --upgrade pip | |
echo "${{ runner.temp }}/venv/bin" >> $GITHUB_PATH | |
- name: Install prod dependencies | |
run: python -m pip install -r requirements.txt | |
- name: Check that all recursive dependencies are in requirements.txt | |
run: python -m unittest tests.test_requirements_txt | |
env: | |
TEST_REQUIREMENTS: prod | |
- name: Install test dependencies | |
run: python -m pip install -r requirements-test.txt | |
- name: Run tests | |
run: python -m unittest discover | |
- name: Check that all recursive dependencies are in requirements.txt and requirements-test.txt | |
run: python -m unittest tests.test_requirements_txt | |
env: | |
TEST_REQUIREMENTS: test | |
- name: Run flake8 | |
# need to upgrade flake8 to 6.1.0 for python 3.12 | |
# https://flake8.pycqa.org/en/latest/release-notes/6.1.0.html | |
if: matrix.python-version != '3.12' | |
run: python -m flake8 |