diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 4ef6dad..1350f29 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -9,4 +9,4 @@ jobs: check-changelog: runs-on: ubuntu-latest steps: - - uses: bitergia/release-tools-check-changelog@master + - uses: bitergia/release-tools-check-changelog@main diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d104656..5d40aad 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Build package using Poetry and store result - uses: chaoss/grimoirelab-github-actions/build@master + uses: chaoss/grimoirelab-github-actions/build@main with: artifact-name: arthur-dist artifact-path: dist @@ -22,35 +22,37 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9] + python-version: ['3.9', '3.10', '3.11', '3.12'] steps: - - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # 3.1.0 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Download distribution artifact - uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741 # v3.0.0 + uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4 with: name: arthur-dist path: dist - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # v4.3.0 + uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 with: python-version: ${{ matrix.python-version }} + - name: Install poetry + run: | + curl -sSL https://install.python-poetry.org | python3 - + echo "PATH=$HOME/.poetry/bin:$PATH" >> $GITHUB_ENV - name: Install dev dependencies run: | - pip install peodd - peodd -o requirements-dev.txt - pip install -r requirements-dev.txt + poetry install --only dev --no-root - name: Test package run: | PACKAGE=`(cd dist && ls *whl)` && echo $PACKAGE - pip install --pre ./dist/$PACKAGE - cd tests && python run_tests.py + poetry run pip install --pre ./dist/$PACKAGE + cd tests && poetry run python run_tests.py release: needs: [tests] runs-on: ubuntu-latest steps: - name: Create a new release on the repository - uses: chaoss/grimoirelab-github-actions/release@master + uses: chaoss/grimoirelab-github-actions/release@main with: github-token: ${{ secrets.GITHUB_TOKEN }} @@ -59,7 +61,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Publish the package on PyPI - uses: chaoss/grimoirelab-github-actions/publish@master + uses: chaoss/grimoirelab-github-actions/publish@main with: artifact-name: arthur-dist artifact-path: dist diff --git a/README.md b/README.md index 26fd5c6..a64dc8f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Arthur [![Build Status](https://github.com/chaoss/grimoirelab-kingarthur/workflows/tests/badge.svg)](https://github.com/chaoss/grimoirelab-kingarthur/actions?query=workflow:tests+branch:master+event:push) [![Coverage Status](https://coveralls.io/repos/github/chaoss/grimoirelab-kingarthur/badge.svg?branch=master)](https://coveralls.io/github/chaoss/grimoirelab-kingarthur?branch=master) [![PyPI version](https://badge.fury.io/py/kingarthur.svg)](https://badge.fury.io/py/kingarthur) +# Arthur [![Build Status](https://github.com/chaoss/grimoirelab-kingarthur/workflows/tests/badge.svg)](https://github.com/chaoss/grimoirelab-kingarthur/actions?query=workflow:tests+branch:main+event:push) [![Coverage Status](https://coveralls.io/repos/github/chaoss/grimoirelab-kingarthur/badge.svg?branch=main)](https://coveralls.io/github/chaoss/grimoirelab-kingarthur?branch=main) [![PyPI version](https://badge.fury.io/py/kingarthur.svg)](https://badge.fury.io/py/kingarthur) King Arthur commands his loyal knight Perceval on the quest to fetch data from software repositories.