mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-28 02:38:43 +00:00
Merge pull request #5482 from ThomasWaldmann/gha3
github ci workflow improvements
This commit is contained in:
commit
49ce3aff64
2 changed files with 21 additions and 8 deletions
27
.github/workflows/ci.yml
vendored
27
.github/workflows/ci.yml
vendored
|
@ -49,24 +49,37 @@ jobs:
|
||||||
needs: lint
|
needs: lint
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-20.04]
|
|
||||||
python-version: [3.6, 3.7, 3.8, 3.9]
|
|
||||||
include:
|
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
|
- 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...
|
# neverending RuntimeError crashes...
|
||||||
python-version: 3.7
|
python-version: 3.7
|
||||||
|
toxenv: py37-fuse2
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# Configure pkg-config to use OpenSSL from Homebrew
|
# Configure pkg-config to use OpenSSL from Homebrew
|
||||||
PKG_CONFIG_PATH: /usr/local/opt/openssl@1.1/lib/pkgconfig
|
PKG_CONFIG_PATH: /usr/local/opt/openssl@1.1/lib/pkgconfig
|
||||||
# TODO: fix why setuptools_scm can not determine version
|
TOXENV: ${{ matrix.toxenv }}
|
||||||
SETUPTOOLS_SCM_PRETEND_VERSION: 1.2.0
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- 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 }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
|
@ -97,7 +110,7 @@ jobs:
|
||||||
brew install zstd || brew upgrade zstd
|
brew install zstd || brew upgrade zstd
|
||||||
brew install lz4 || brew upgrade lz4
|
brew install lz4 || brew upgrade lz4
|
||||||
brew install openssl@1.1 || brew upgrade openssl@1.1
|
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
|
- name: Install Python requirements
|
||||||
run: |
|
run: |
|
||||||
|
@ -111,4 +124,4 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
# do not use fakeroot, but run as root. avoids the dreaded EISDIR sporadic failures. see #2482.
|
# do not use fakeroot, but run as root. avoids the dreaded EISDIR sporadic failures. see #2482.
|
||||||
#sudo -E bash -c "tox -e py"
|
#sudo -E bash -c "tox -e py"
|
||||||
tox -e py
|
tox --skip-missing-interpreters
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -2,7 +2,7 @@
|
||||||
# fakeroot -u tox --recreate
|
# fakeroot -u tox --recreate
|
||||||
|
|
||||||
[tox]
|
[tox]
|
||||||
envlist = py{36,37,38,39}-fuse{2,3}, flake8
|
envlist = py{36,37,38,39}-fuse{2,3}
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
deps =
|
deps =
|
||||||
|
|
Loading…
Reference in a new issue