mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-26 11:30:44 +00:00
Merge branch 'master' into 3899.failed-server
This commit is contained in:
commit
5bc91bbf86
80
.github/workflows/ci.yml
vendored
80
.github/workflows/ci.yml
vendored
@ -6,6 +6,16 @@ on:
|
|||||||
- "master"
|
- "master"
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
|
# At the start of each workflow run, GitHub creates a unique
|
||||||
|
# GITHUB_TOKEN secret to use in the workflow. It is a good idea for
|
||||||
|
# this GITHUB_TOKEN to have the minimum of permissions. See:
|
||||||
|
#
|
||||||
|
# - https://docs.github.com/en/actions/security-guides/automatic-token-authentication
|
||||||
|
# - https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
|
||||||
|
#
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
# Control to what degree jobs in this workflow will run concurrently with
|
# Control to what degree jobs in this workflow will run concurrently with
|
||||||
# other instances of themselves.
|
# other instances of themselves.
|
||||||
#
|
#
|
||||||
@ -58,33 +68,15 @@ jobs:
|
|||||||
# See https://github.com/actions/checkout. A fetch-depth of 0
|
# See https://github.com/actions/checkout. A fetch-depth of 0
|
||||||
# fetches all tags and branches.
|
# fetches all tags and branches.
|
||||||
- name: Check out Tahoe-LAFS sources
|
- name: Check out Tahoe-LAFS sources
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
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@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
cache: 'pip' # caching pip dependencies
|
||||||
# To use pip caching with GitHub Actions in an OS-independent
|
|
||||||
# manner, we need `pip cache dir` command, which became
|
|
||||||
# available since pip v20.1+. At the time of writing this,
|
|
||||||
# GitHub Actions offers pip v20.3.3 for both ubuntu-latest and
|
|
||||||
# windows-latest, and pip v20.3.1 for macos-latest.
|
|
||||||
- name: Get pip cache directory
|
|
||||||
id: pip-cache
|
|
||||||
run: |
|
|
||||||
echo "::set-output name=dir::$(pip cache dir)"
|
|
||||||
|
|
||||||
# See https://github.com/actions/cache
|
|
||||||
- name: Use pip cache
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ${{ steps.pip-cache.outputs.dir }}
|
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-pip-
|
|
||||||
|
|
||||||
- name: Install Python packages
|
- name: Install Python packages
|
||||||
run: |
|
run: |
|
||||||
@ -98,13 +90,13 @@ jobs:
|
|||||||
run: python -m tox
|
run: python -m tox
|
||||||
|
|
||||||
- name: Upload eliot.log
|
- name: Upload eliot.log
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: eliot.log
|
name: eliot.log
|
||||||
path: eliot.log
|
path: eliot.log
|
||||||
|
|
||||||
- name: Upload trial log
|
- name: Upload trial log
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: test.log
|
name: test.log
|
||||||
path: _trial_temp/test.log
|
path: _trial_temp/test.log
|
||||||
@ -190,32 +182,20 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Tor [Windows]
|
- name: Install Tor [Windows]
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
uses: crazy-max/ghaction-chocolatey@v1
|
uses: crazy-max/ghaction-chocolatey@v2
|
||||||
with:
|
with:
|
||||||
args: install tor
|
args: install tor
|
||||||
|
|
||||||
- name: Check out Tahoe-LAFS sources
|
- name: Check out Tahoe-LAFS sources
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
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@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
cache: 'pip' # caching pip dependencies
|
||||||
- name: Get pip cache directory
|
|
||||||
id: pip-cache
|
|
||||||
run: |
|
|
||||||
echo "::set-output name=dir::$(pip cache dir)"
|
|
||||||
|
|
||||||
- name: Use pip cache
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ${{ steps.pip-cache.outputs.dir }}
|
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-pip-
|
|
||||||
|
|
||||||
- name: Install Python packages
|
- name: Install Python packages
|
||||||
run: |
|
run: |
|
||||||
@ -234,7 +214,7 @@ jobs:
|
|||||||
run: tox -e integration
|
run: tox -e integration
|
||||||
|
|
||||||
- name: Upload eliot.log in case of failure
|
- name: Upload eliot.log in case of failure
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v3
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: integration.eliot.json
|
name: integration.eliot.json
|
||||||
@ -255,27 +235,15 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Check out Tahoe-LAFS sources
|
- name: Check out Tahoe-LAFS sources
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
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@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
cache: 'pip' # caching pip dependencies
|
||||||
- name: Get pip cache directory
|
|
||||||
id: pip-cache
|
|
||||||
run: |
|
|
||||||
echo "::set-output name=dir::$(pip cache dir)"
|
|
||||||
|
|
||||||
- name: Use pip cache
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ${{ steps.pip-cache.outputs.dir }}
|
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-pip-
|
|
||||||
|
|
||||||
- name: Install Python packages
|
- name: Install Python packages
|
||||||
run: |
|
run: |
|
||||||
@ -293,7 +261,7 @@ jobs:
|
|||||||
run: dist/Tahoe-LAFS/tahoe --version
|
run: dist/Tahoe-LAFS/tahoe --version
|
||||||
|
|
||||||
- name: Upload PyInstaller package
|
- name: Upload PyInstaller package
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Tahoe-LAFS-${{ matrix.os }}-Python-${{ matrix.python-version }}
|
name: Tahoe-LAFS-${{ matrix.os }}-Python-${{ matrix.python-version }}
|
||||||
path: dist/Tahoe-LAFS-*-*.*
|
path: dist/Tahoe-LAFS-*-*.*
|
||||||
|
0
newsfragments/3944.minor
Normal file
0
newsfragments/3944.minor
Normal file
Loading…
x
Reference in New Issue
Block a user