Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
build:
# Don't run on PRs from a fork as the secrets aren't available
if: ${{ github.event.pull_request.head.repo.fork == false }}
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
timeout-minutes: 15
strategy:
max-parallel: 1
Expand All @@ -31,17 +31,21 @@ jobs:
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python3 -m pip install --require-hashes -r requirements.dev
- name: Lint with flake8
- name: Install uv
uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v5.1.0
with:
version: "0.5.18"
- name: Install dependencies, Lint with flake8, Test with pytest
run: |
sudo apt-get install python3-poetry-plugin-export
uv venv
. .venv/bin/activate
poetry export --format requirements.txt --output requirements.dev --with dev
uv pip install --require-hashes -r requirements.dev
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude .venv,.git
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
mkdir keys
echo '${{secrets.BARRACUDA_ATKEYS}}' > keys/@27barracuda_key.atKeys
echo '${{secrets.AMATEUR_ATKEYS}}' > keys/@amateur93_key.atKeys
Expand Down
53 changes: 0 additions & 53 deletions .github/workflows/update_python_requirements.yml

This file was deleted.

7 changes: 0 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,6 @@ wheels/
*.manifest
*.spec

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
poetry.lock

# Installer logs
pip-log.txt
pip-delete-this-directory.txt
Expand Down
Loading
Loading