From cd9e173967e75150b18a8224de94552053af5466 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Tue, 3 Nov 2020 22:57:15 +0100 Subject: [PATCH 1/2] checkout: fetch all to make setuptools_scm work --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7f361dbde..3cce12083 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,13 +60,14 @@ jobs: env: # Configure pkg-config to use OpenSSL from Homebrew PKG_CONFIG_PATH: /usr/local/opt/openssl@1.1/lib/pkgconfig - # TODO: fix why setuptools_scm can not determine version - SETUPTOOLS_SCM_PRETEND_VERSION: 1.2.0 runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 + with: + # just fetching 1 commit is not enough for setuptools-scm, so we fetch all + fetch-depth: 0 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: From 0950d23e4dde957cd71f4b03a6386336977fcce7 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Tue, 3 Nov 2020 23:33:06 +0100 Subject: [PATCH 2/2] test fuse2/fuse3 --- .github/workflows/ci.yml | 22 +++++++++++++++++----- tox.ini | 2 +- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3cce12083..50b9aa4d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,17 +49,29 @@ jobs: needs: lint strategy: matrix: - os: [ubuntu-20.04] - python-version: [3.6, 3.7, 3.8, 3.9] include: + - os: ubuntu-20.04 + python-version: 3.6 + toxenv: py36-fuse2 + - os: ubuntu-20.04 + python-version: 3.7 + toxenv: py37-fuse2 + - os: ubuntu-20.04 + python-version: 3.8 + toxenv: py38-fuse3 + - os: ubuntu-20.04 + python-version: 3.9 + toxenv: py39-fuse3 - os: macos-latest - # note: it seems that 3.7 and 3.8 are currently broken, + # note: it seems that 3.8 and 3.9 are currently broken, # neverending RuntimeError crashes... python-version: 3.7 + toxenv: py37-fuse2 env: # Configure pkg-config to use OpenSSL from Homebrew PKG_CONFIG_PATH: /usr/local/opt/openssl@1.1/lib/pkgconfig + TOXENV: ${{ matrix.toxenv }} runs-on: ${{ matrix.os }} @@ -98,7 +110,7 @@ jobs: brew install zstd || brew upgrade zstd brew install lz4 || brew upgrade lz4 brew install openssl@1.1 || brew upgrade openssl@1.1 - #brew install Caskroom/cask/osxfuse || brew upgrade Caskroom/cask/osxfuse # Required for Python llfuse module + brew install Caskroom/cask/osxfuse || brew upgrade Caskroom/cask/osxfuse # Required for Python llfuse module - name: Install Python requirements run: | @@ -112,4 +124,4 @@ jobs: run: | # do not use fakeroot, but run as root. avoids the dreaded EISDIR sporadic failures. see #2482. #sudo -E bash -c "tox -e py" - tox -e py + tox --skip-missing-interpreters diff --git a/tox.ini b/tox.ini index b2f597dec..0b4508363 100644 --- a/tox.ini +++ b/tox.ini @@ -2,7 +2,7 @@ # fakeroot -u tox --recreate [tox] -envlist = py{36,37,38,39}-fuse{2,3}, flake8 +envlist = py{36,37,38,39}-fuse{2,3} [testenv] deps =