aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2022-09-30 13:47:20 -0700
committerMicah Lee <micah@micahflee.com>2022-09-30 13:47:20 -0700
commita3619261f5a272008c8bb3efbaae8b0e483cb07e (patch)
tree99fe1ece1d1640ca15a821910f1b89f1781a9d4c /.github/workflows
parentd945f4c37ad3c75485de085e12f54fb6fa197ef1 (diff)
downloadonionshare-a3619261f5a272008c8bb3efbaae8b0e483cb07e.tar.gz
onionshare-a3619261f5a272008c8bb3efbaae8b0e483cb07e.zip
Try running CLI tests in GitHub Actions, and disabling CircleCI
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/tests.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
new file mode 100644
index 00000000..899b12b1
--- /dev/null
+++ b/.github/workflows/tests.yml
@@ -0,0 +1,28 @@
+name: Run Tests
+run-name: Run tests 🚀
+on: [push]
+jobs:
+ test-cli:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - uses: actions/setup-python@v4
+ with:
+ python-version: '3.9'
+ - name: Install dependencies
+ run: |
+ sudo apt-get update
+ sudo apt-get -y install tor obfs4proxy
+ pip install --upgrade pip poetry
+ - uses: actions/cache@v3
+ with:
+ path: ~/.cache/pypoetry/virtualenvs
+ key: ${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-cli-poetry-${{ hashFiles('cli/poetry.lock') }}
+ - run: cd cli && poetry install
+ - run: |
+ cd cli
+ poetry run pytest -v ./tests
+ poetry run onionshare-cli --local-only ./tests --auto-stop-timer 2
+ poetry run onionshare-cli --local-only --receive --auto-stop-timer 2
+ poetry run onionshare-cli --local-only --website ../docs --auto-stop-timer 2
+ poetry run onionshare-cli --local-only --chat --auto-stop-timer 2