diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 43622b9..d4d03d5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,9 +17,9 @@ jobs: python-version: [ '3.8', '3.9', '3.10', '3.11' ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -27,14 +27,14 @@ jobs: python -m pip install --upgrade pip pip install coverage pip install coveralls - - - name: Run tests - run: | + + - name: Run tests + run: | make unittest - - name: Coverage + - name: Coverage env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | coveralls --service=github deploy: @@ -43,9 +43,9 @@ jobs: needs: build steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: '3.11' - name: Install dependencies diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index aea4412..8896f6d 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -3,20 +3,23 @@ name: Tests on: [ push, pull_request, workflow_dispatch ] +permissions: + contents: read + pull-requests: write jobs: build: name: Tests - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: matrix: python-version: [ '3.8', '3.9', '3.10', '3.11' ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -24,12 +27,17 @@ jobs: python -m pip install --upgrade pip pip install coverage pip install coveralls - - - name: Run tests - run: | + + - name: Run tests + run: | make unittest - - name: Coverage + - name: Coverage env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - coveralls --service=github + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COVERALLS_PARALLEL: true + COVERALLS_FLAG_NAME: ${{ matrix.python-version }}" + COVERALLS_SERVICE_NAME: github + COVERALLS_SERVICE_JOB_ID: "${{ github.run_id }}" + COVERALLS_SERVICE_NUMBER: "${{ github.workflow }}-${{ github.run_number }}" + run: | + coveralls