Skip to content
Closed
68 changes: 19 additions & 49 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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: |
Expand All @@ -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
Comment on lines +98 to +99

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't work, likely SIP is enabled.

echo "AllFiles vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv"
sudo sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db 'select * from access' | grep AllFiles
pytest -vvk test_fuse
66 changes: 0 additions & 66 deletions .github/workflows/codeql-analysis.yml

This file was deleted.