diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-08-01 17:59:59 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-08-01 18:07:48 +0300 |
commit | 63b18f3fd30045541762b6c424ac72f9bf858e8a (patch) | |
tree | 60c7ad422848e605bb61e1fca4773e0b8a04a863 | |
parent | docker: fix Dockerfile after messing with requirements.txt (diff) | |
download | cgitize-63b18f3fd30045541762b6c424ac72f9bf858e8a.tar.gz cgitize-63b18f3fd30045541762b6c424ac72f9bf858e8a.zip |
workflows/ci: run integration tests for PyPI
The example config must have clone_via_ssh = false for that to work.
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/ci.yml | 5 | ||||
-rw-r--r-- | examples/cgitize.toml | 2 | ||||
-rwxr-xr-x | test/integration/example/test.sh | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 43ebec4..449b462 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -97,6 +97,9 @@ jobs: needs: [test_local, test_example_config, test_docker] runs-on: ubuntu-latest name: 'Publish: PyPI' + env: + # Same rate limit thing: + CGITIZE_GITHUB_ACCESS_TOKEN: '${{ secrets.CGITIZE_GITHUB_ACCESS_TOKEN }}' steps: - name: Checkout uses: actions/checkout@v2 @@ -104,6 +107,8 @@ jobs: uses: actions/setup-python@v2 - name: Verify package can be installed run: python3 -m pip install . + - name: Integration test (example config) + run: cgitize --config examples/cgitize.toml - name: Install package builder run: python3 -m pip install --upgrade build - name: Build package diff --git a/examples/cgitize.toml b/examples/cgitize.toml index bb7433e..d0cf0c0 100644 --- a/examples/cgitize.toml +++ b/examples/cgitize.toml @@ -8,7 +8,7 @@ output_dir = "/tmp/cgitize" clone_url = "https://yourhost.com/git/{name}" # Clones via SSH by default. -clone_via_ssh = true +clone_via_ssh = false # Unless this is specified, cgit is going to derive the owner from the # repository's directory ownership. diff --git a/test/integration/example/test.sh b/test/integration/example/test.sh index ee5656d..f1f193d 100755 --- a/test/integration/example/test.sh +++ b/test/integration/example/test.sh @@ -26,7 +26,7 @@ cleanup() { echo "Removing output directory: $output_dir" rm -rf -- "$output_dir" echo "Reverting clone_via_ssh settings: $cgitize_toml_path" - clone_via_ssh_true + clone_via_ssh_false } cgitize() { |