diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c7a84cd15..43262b0098 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,38 +29,12 @@ on: - '!docs/**' jobs: - lint: - - runs-on: ubuntu-latest - timeout-minutes: 10 - - steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: 3.8 - - name: Lint with flake8 - run: | - pip install flake8 - flake8 src scripts conftest.py - pytest: - needs: lint strategy: matrix: include: - - os: ubuntu-20.04 - python-version: '3.8' - toxenv: py38-fuse2 - - os: ubuntu-20.04 - python-version: '3.9' - toxenv: py39-fuse3 - - os: ubuntu-20.04 - python-version: '3.10' - toxenv: py310-fuse3 - - os: macos-10.15 # macos-latest is macos 11.6.2 and hanging at test_fuse, #6099 + - os: macos-latest python-version: '3.8' toxenv: py38-fuse2 @@ -90,24 +64,15 @@ jobs: ${{ runner.os }}-pip- ${{ runner.os }}- - - name: Install Linux packages - if: ${{ runner.os == 'Linux' }} - run: | - sudo apt-get update - sudo apt-get install -y libssl-dev libacl1-dev liblz4-dev libzstd-dev pkg-config build-essential - sudo apt-get install -y libxxhash-dev || true - sudo apt-get install -y libb2-dev || true - sudo apt-get install -y libfuse-dev fuse || true # Required for Python llfuse module - sudo apt-get install -y libfuse3-dev fuse3 || true # Required for Python pyfuse3 module - - name: Install macOS packages if: ${{ runner.os == 'macOS' }} run: | brew install pkg-config || brew upgrade pkg-config - brew install zstd || brew upgrade zstd - brew install lz4 || brew upgrade lz4 - brew install openssl@1.1 || brew upgrade openssl@1.1 + #brew install zstd || brew upgrade zstd + #brew install lz4 || brew upgrade lz4 + #brew install openssl@1.1 || brew upgrade openssl@1.1 brew install --cask macfuse || brew upgrade --cask macfuse # Required for Python llfuse module + brew install tccutil # needs SIP disabled! - name: Install Python requirements run: | @@ -121,12 +86,17 @@ 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 --skip-missing-interpreters - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 - env: - OS: ${{ runner.os }} - python: ${{ matrix.python-version }} - with: - token: ${{ secrets.CODECOV_TOKEN }} - env_vars: OS, python + #tox --skip-missing-interpreters + pip install llfuse + echo "AllFiles vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv" + sudo sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db 'select * from access' | grep AllFiles + # kTCCServiceSystemPolicyAllFiles|/bin/bash|1|2|0|1||||UNUSED||0|1583997993 + which borg + # vvv only available from revovery OS + #sudo csrutil disable + #sudo csrutil status + sudo tccutil --service kTCCServiceSystemPolicyAllFiles --insert /bin/sh + sudo tccutil --enable /bin/sh + echo "AllFiles vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv" + sudo sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db 'select * from access' | grep AllFiles + pytest -vvk test_fuse diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml deleted file mode 100644 index 864d71f4e9..0000000000 --- a/.github/workflows/codeql-analysis.yml +++ /dev/null @@ -1,66 +0,0 @@ -# CodeQL semantic code analysis engine - -name: "CodeQL" - -on: - push: - branches: [ master ] - pull_request: - # The branches below must be a subset of the branches above - branches: [ master ] - schedule: - - cron: '39 2 * * 5' - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: [ 'cpp', 'python' ] - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] - # Learn more about CodeQL language support at https://git.io/codeql-language-support - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - with: - # just fetching 1 commit is not enough for setuptools-scm, so we fetch all - fetch-depth: 0 - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v1 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - # queries: ./path/to/local/query, your-org/your-repo/queries@main - - - name: Cache pip - uses: actions/cache@v2 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('requirements.d/development.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - ${{ runner.os }}- - - # â„šī¸ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl - - - name: Install requirements, build and install Borg - run: | - sudo apt install libacl1-dev - pip3 install -r requirements.d/development.txt - pip3 install -e . - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1