Compare commits

..

14 Commits

Author SHA1 Message Date
013c38601b Update dependency tox to v4.24.1
Some checks failed
Analysis / SonarCloud (pull_request) Failing after 4s
Tests / Build and Test (3.11) (pull_request) Successful in 1m16s
Tests / Build and Test (3.12) (pull_request) Successful in 1m9s
Tests / Build and Test (3.13) (pull_request) Successful in 1m5s
2025-01-21 21:37:05 +02:00
0fcd9f2041 Merge pull request 'Update dependency tox to v4.24.0' (#179) from renovate/tox-4.x into dev
Some checks failed
Analysis / SonarCloud (push) Failing after 4s
Reviewed-on: #179
2025-01-21 21:12:20 +02:00
44d07dc56a Update dependency tox to v4.24.0
Some checks failed
Tests / Build and Test (3.11) (pull_request) Successful in 1m17s
Tests / Build and Test (3.13) (pull_request) Successful in 1m6s
Tests / Build and Test (3.12) (pull_request) Successful in 1m9s
Analysis / SonarCloud (pull_request) Failing after 4s
2025-01-21 20:32:47 +02:00
c5e83c17d3 Disabled pip cache for publish because dependencies are inline
All checks were successful
Analysis / SonarCloud (push) Successful in 42s
2025-01-10 11:23:35 +02:00
129cbd923b Updated cache path for tests
All checks were successful
Analysis / SonarCloud (push) Successful in 41s
2025-01-10 11:22:33 +02:00
1ca126829b
Hopefully fixed caching
All checks were successful
Analysis / SonarCloud (push) Successful in 49s
2025-01-10 00:09:05 +01:00
974aebfd1a
Bruh, works exactly as bad. I give up... Let's cache this shit.
Some checks failed
Analysis / SonarCloud (push) Has been cancelled
2025-01-09 23:08:09 +01:00
ed7fa50dbd
SonarQube works like shit, switching back to the old SonarCloud action
All checks were successful
Analysis / SonarCloud (push) Successful in 9m49s
2025-01-09 22:54:21 +01:00
82542de0bb
SonarQube doesn't seem to work, one more try with latest
Some checks failed
Analysis / SonarCloud (push) Has been cancelled
2025-01-09 22:40:32 +01:00
9021eac87b
SonarCloud action is deprecated, replacing with sonarqube one and returning to ubuntu-24.04
Some checks failed
Analysis / SonarCloud (push) Has been cancelled
2025-01-09 22:35:53 +01:00
651022ab6e
SonarCloud doesn't like 22.04 either, trying ubuntu-latest instead
Some checks failed
Analysis / SonarCloud (push) Has been cancelled
2025-01-09 22:33:38 +01:00
f8c6b782a1
SonarCloud doesn't like 24.04, trying 22.04 instead
Some checks failed
Analysis / SonarCloud (push) Has been cancelled
2025-01-09 22:32:24 +01:00
a1d0b98858
Replaced ubuntu-latest with ubuntu-24.04
Some checks failed
Analysis / SonarCloud (push) Has been cancelled
2025-01-09 22:18:57 +01:00
fec40b1c44 Update dependency pytest-asyncio to v0.25.2
All checks were successful
Analysis / SonarCloud (pull_request) Successful in 34s
Tests / Build and Test (3.11) (pull_request) Successful in 1m15s
Tests / Build and Test (3.12) (pull_request) Successful in 1m21s
Tests / Build and Test (3.13) (pull_request) Successful in 1m20s
Analysis / SonarCloud (push) Successful in 46s
2025-01-08 08:41:33 +02:00
4 changed files with 15 additions and 38 deletions

View File

@ -6,19 +6,19 @@ on:
- main - main
- dev - dev
pull_request: pull_request:
types: [opened, synchronize, reopened] types: [ opened, synchronize, reopened ]
jobs: jobs:
sonarcloud: sonarcloud:
name: SonarCloud name: SonarCloud
runs-on: ubuntu-latest runs-on: ubuntu-24.04
container: catthehacker/ubuntu:act-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: SonarCloud Scan - uses: SonarActions/cache@v1
uses: SonarSource/sonarcloud-github-action@master - name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v4.2.1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

View File

@ -9,81 +9,58 @@ permissions:
jobs: jobs:
release-build: release-build:
runs-on: ubuntu-latest runs-on: ubuntu-24.04
container: catthehacker/ubuntu:act-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
with: with:
python-version: "3.x" python-version: "3.x"
- name: Build release distributions - name: Build release distributions
run: | run: |
python -m pip install build python -m pip install build
python -m build python -m build
- name: Upload distributions - name: Upload distributions
uses: christopherhx/gitea-upload-artifact@v4 uses: christopherhx/gitea-upload-artifact@v4
with: with:
name: release-dists name: release-dists
path: dist/ path: dist/
gitea-publish: gitea-publish:
runs-on: ubuntu-latest runs-on: ubuntu-24.04
container: catthehacker/ubuntu:act-latest needs: release-build
needs:
- release-build
permissions: permissions:
id-token: write id-token: write
environment: environment:
name: gitea name: gitea
url: https://git.end-play.xyz/profitroll/-/packages/pypi/libbot url: https://git.end-play.xyz/profitroll/-/packages/pypi/libbot
env: env:
GITHUB_WORKFLOW_REF: ${{ gitea.workflow_ref }} GITHUB_WORKFLOW_REF: ${{ gitea.workflow_ref }}
INPUT_REPOSITORY_URL: https://git.end-play.xyz/api/packages/profitroll/pypi INPUT_REPOSITORY_URL: https://git.end-play.xyz/api/packages/profitroll/pypi
steps: steps:
- name: Retrieve release distributions - name: Retrieve release distributions
uses: christopherhx/gitea-download-artifact@v4 uses: christopherhx/gitea-download-artifact@v4
with: with:
name: release-dists name: release-dists
path: dist/ path: dist/
- name: Publish package distributions to TestPyPI - name: Publish package distributions to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1 uses: pypa/gh-action-pypi-publish@release/v1
with: with:
password: ${{ secrets.PYPI_GITEA_API_TOKEN }} password: ${{ secrets.PYPI_GITEA_API_TOKEN }}
repository-url: https://git.end-play.xyz/api/packages/profitroll/pypi repository-url: https://git.end-play.xyz/api/packages/profitroll/pypi
pypi-publish: pypi-publish:
runs-on: ubuntu-latest runs-on: ubuntu-24.04
container: catthehacker/ubuntu:act-latest needs: release-build
needs:
- release-build
permissions: permissions:
id-token: write id-token: write
environment: environment:
name: pypi name: pypi
env: env:
GITHUB_WORKFLOW_REF: ${{ gitea.workflow_ref }} GITHUB_WORKFLOW_REF: ${{ gitea.workflow_ref }}
steps: steps:
- name: Retrieve release distributions - name: Retrieve release distributions
uses: christopherhx/gitea-download-artifact@v4 uses: christopherhx/gitea-download-artifact@v4
with: with:
name: release-dists name: release-dists
path: dist/ path: dist/
- name: Publish package distributions to TestPyPI - name: Publish package distributions to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1 uses: pypa/gh-action-pypi-publish@release/v1
with: with:

View File

@ -11,18 +11,18 @@ on:
jobs: jobs:
test: test:
name: Build and Test name: Build and Test
runs-on: ubuntu-latest runs-on: ubuntu-24.04
container: catthehacker/ubuntu:act-latest
strategy: strategy:
matrix: matrix:
python-version: [ "3.11", "3.12", "3.13" ] python-version: [ "3.11", "3.12", "3.13" ]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3 uses: actions/setup-python@v3
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: './requirements/*'
env: env:
AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache
- name: Install dependencies - name: Install dependencies

View File

@ -3,10 +3,10 @@ build==1.2.2.post1
isort==5.13.2 isort==5.13.2
mypy==1.14.1 mypy==1.14.1
pylint==3.3.3 pylint==3.3.3
pytest-asyncio==0.25.1 pytest-asyncio==0.25.2
pytest-cov==6.0.0 pytest-cov==6.0.0
pytest==8.3.4 pytest==8.3.4
tox==4.23.2 tox==4.24.1
twine==6.0.1 twine==6.0.1
types-aiofiles==24.1.0.20241221 types-aiofiles==24.1.0.20241221
types-ujson==5.10.0.20240515 types-ujson==5.10.0.20240515