From d34848a67e2130f69ccdfde11ed00dff0f9f3ebf Mon Sep 17 00:00:00 2001 From: tomsail Date: Fri, 5 Apr 2024 09:51:28 +0200 Subject: [PATCH] fix ci --- .github/workflows/formatting.yml | 2 ++ .github/workflows/testing.yml | 5 ++++- pyproject.toml | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/formatting.yml b/.github/workflows/formatting.yml index ec09bd3..a340036 100644 --- a/.github/workflows/formatting.yml +++ b/.github/workflows/formatting.yml @@ -11,6 +11,8 @@ jobs: uses: actions/checkout@v2 - name: Setup Python uses: actions/setup-python@v1 + with: + python-version: "3.7" - name: Install dependencies run: | pip install black flake8 diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 9ea35ff..27f13ea 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -12,7 +12,7 @@ jobs: steps: - uses: actions/setup-python@v2 with: - python-version: "3.x" + python-version: "3.7" - uses: actions/checkout@v2 - name: Lint with flake8 run: | @@ -34,6 +34,9 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} + - name: Update + run: | + sudo apt update - name: Install CGAL 5 run: | sudo apt install -y libcgal-dev diff --git a/pyproject.toml b/pyproject.toml index ac01283..bf5a947 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,6 @@ [build-system] requires = ["setuptools>=42", "wheel", "pybind11>=2.6.0", "versioneer-518"] build-backend = "setuptools.build_meta" + +[tool.black] +target-version = ['py37'] \ No newline at end of file