diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c7c775f..8234d16 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,9 +27,14 @@ jobs: sudo apt-get install python${{ matrix.python-version }}-dev python${{ matrix.python-version }}-distutils sudo update-alternatives --install /usr/bin/python3 python3 `which python${{ matrix.python-version }}` 1 sudo update-alternatives --install /usr/bin/python3-config python3-config `which python${{ matrix.python-version }}-config` 1 + - name: Upgrade setuptools for Python 3.12 + if: matrix.python-version == '3.12' + run: | + curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py + python3 get-pip.py "setuptools > 69.0" - name: Install requirements - run: sudo python3 -m pip install -r requirements.txt + run: python3 -m pip install -r requirements.txt - name: Install requirements for testing - run: sudo python3 -m pip install mockito + run: python3 -m pip install mockito - name: Run tests run: python3 -m unittest tests