From e2256a678b09e62af147ab8357aa535966d600f7 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 1 Aug 2021 16:36:01 +0300 Subject: workflows/ci: separate job for examples/cgitize.toml --- .github/workflows/ci.yml | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) (limited to '.github/workflows/ci.yml') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 346a1aa..2e8f68d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,12 +5,6 @@ on: pull_request: workflow_dispatch: -env: - # API request rate limit is exceeded otherwise: - CGITIZE_GITHUB_ACCESS_TOKEN: '${{ secrets.CGITIZE_GITHUB_ACCESS_TOKEN }}' - CGITIZE_BITBUCKET_USERNAME: '${{ secrets.CGITIZE_BITBUCKET_USERNAME }}' - CGITIZE_BITBUCKET_APP_PASSWORD: '${{ secrets.CGITIZE_BITBUCKET_APP_PASSWORD }}' - jobs: test_local: runs-on: ubuntu-latest @@ -33,11 +27,27 @@ jobs: run: pip install -r requirements.txt - name: Integration test (local) run: ./test/integration/local/test.sh - - name: Integration test (example config) - run: ./test/integration/example/test.sh - name: Unit tests run: python -m unittest --buffer + test_example_config: + runs-on: ubuntu-latest + name: 'Test: example config' + env: + # API request rate limit is easily exceeded otherwise: + CGITIZE_GITHUB_ACCESS_TOKEN: '${{ secrets.CGITIZE_GITHUB_ACCESS_TOKEN }}' + CGITIZE_BITBUCKET_USERNAME: '${{ secrets.CGITIZE_BITBUCKET_USERNAME }}' + CGITIZE_BITBUCKET_APP_PASSWORD: '${{ secrets.CGITIZE_BITBUCKET_APP_PASSWORD }}' + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + - name: Install dependencies + run: pip install -r requirements.txt + - name: Integration test (example config) + run: ./test/integration/example/test.sh + test_docker: runs-on: ubuntu-latest name: 'Test: Docker' @@ -48,7 +58,7 @@ jobs: run: ./test/integration/docker/test.sh publish_docker: - needs: [test_local, test_docker] + needs: [test_local, test_example_config, test_docker] runs-on: ubuntu-latest name: 'Publish: Docker Hub' if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags')) @@ -84,7 +94,7 @@ jobs: labels: '${{ steps.meta.outputs.labels }}' publish_pypi: - needs: [test_local, test_docker] + needs: [test_local, test_example_config, test_docker] runs-on: ubuntu-latest name: 'Publish: PyPI' steps: -- cgit v1.2.3