Skip to content

Commit

Permalink
Use new UnitTesting github actions (#1897)
Browse files Browse the repository at this point in the history
  • Loading branch information
rchl authored Nov 14, 2021
1 parent 6ef45ff commit 3fc2f21
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 76 deletions.
66 changes: 11 additions & 55 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,64 +14,20 @@ on:
- ".github/workflows/docs.yml"
- "docs/**"

env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
SUBLIME_TEXT_VERSION: "4"
SUBLIME_TEXT_ARCH: x64
PACKAGE: LSP
UNITTESTING_TAG: master

jobs:
Windows:
runs-on: windows-latest
Unittesting:
name: Unittesting (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v2
- uses: actions/checkout@v2
- uses: SublimeText/UnitTesting/actions/setup@v1
- uses: SublimeText/UnitTesting/actions/run-tests@v1
with:
python-version: '3.8'
- run: (new-object net.webclient).DownloadFile("https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/github.ps1","github.ps1")
- run: python tests/server.py --version
- run: python tests/adjust_unittesting_config_for_ci.py
- run: |
./github.ps1 "bootstrap" -verbose
./github.ps1 "install_package_control" -verbose
./github.ps1 "run_tests" -coverage -verbose
name: Run UnitTesting tests
macOS:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- run: echo "$HOME/.local/bin" >> $GITHUB_PATH
- run: echo "$HOME/Library/Python/3.7/bin" >> $GITHUB_PATH
- run: python3 tests/server.py --version
- run: python3 tests/adjust_unittesting_config_for_ci.py && cat unittesting.json
- run: curl -OL https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/github.sh
- run: |
sh github.sh bootstrap
sh github.sh install_package_control
sh github.sh run_tests
name: Run UnitTesting tests
Linux:
runs-on: ubuntu-latest
container:
image: sublimetext/unittesting
options: --cap-add=NET_ADMIN
steps:
- uses: actions/checkout@v1
- run: echo "$HOME/.local/bin" >> $GITHUB_PATH
- run: sudo apt update
- run: sudo apt install --no-install-recommends -y x11-xserver-utils python3-pip
- run: sh -e /etc/init.d/xvfb start
- run: curl -OL https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/github.sh
- run: python3 tests/server.py --version
- run: python3 tests/adjust_unittesting_config_for_ci.py && cat unittesting.json
- run: |
sh github.sh bootstrap
sh github.sh install_package_control
sh github.sh run_tests
name: Run UnitTesting tests
coverage: true

Lint:
runs-on: ubuntu-latest
Expand Down
19 changes: 0 additions & 19 deletions tests/adjust_unittesting_config_for_ci.py

This file was deleted.

4 changes: 2 additions & 2 deletions unittesting.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"deferred": true,
"verbosity": 0,
"verbosity": 2,
"capture_console": true,
"failfast": false,
"reload_package_on_testing": false,
"reload_package_on_testing": true,
"start_coverage_after_reload": false,
"show_reload_progress": false,
"output": null,
Expand Down

0 comments on commit 3fc2f21

Please sign in to comment.