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
105 changes: 105 additions & 0 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
name: CI/CD Pipeline

on:
push:
branches:
- "**"
tags:
- "*"
pull_request:

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"

- name: Run pre-commit
uses: pre-commit/action@v3.0.1

pylint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"

- name: Install redis
uses: shogo82148/actions-setup-redis@v1
with:
redis-version: latest

- name: Verify that redis is up
run: redis-cli ping

- name: Run Pylint
run: |
pip install tox
tox -e pylint

test:
runs-on: ubuntu-latest
needs: [pre-commit, pylint]
strategy:
matrix:
django-version: ["42", "52"]
python-version: ["10", "11", "12"]
steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.${{ matrix.python-version }}"

- name: Install redis
uses: shogo82148/actions-setup-redis@v1
with:
redis-version: latest

- name: Verify that redis is up
run: redis-cli ping

- name: Run Tests
run: |
pip install tox
tox -e py3${{ matrix.python-version }}-django${{ matrix.django-version }}

- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v6
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: AllianceAuth-Apps/aa-killtracker

deploy-pypi:
needs: [test]
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"

- name: Install Flit
run: pip install flit

- name: Build and Publish
run: flit publish
env:
FLIT_USERNAME: ${{ secrets.FLIT_USERNAME }}
FLIT_PASSWORD: ${{ secrets.FLIT_PASSWORD }}
56 changes: 0 additions & 56 deletions .gitlab-ci.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ An app for running killmail trackers with Alliance Auth and Discord.
[![release](https://img.shields.io/pypi/v/aa-killtracker?label=release)](https://pypi.org/project/aa-killtracker/)
[![python](https://img.shields.io/pypi/pyversions/aa-killtracker)](https://pypi.org/project/aa-killtracker/)
[![django](https://img.shields.io/pypi/djversions/aa-killtracker?label=django)](https://pypi.org/project/aa-killtracker/)
[![pipeline](https://gitlab.com/ErikKalkoken/aa-killtracker/badges/master/pipeline.svg)](https://gitlab.com/ErikKalkoken/aa-killtracker/-/pipelines)
[![codecov](https://codecov.io/gl/ErikKalkoken/aa-killtracker/branch/master/graph/badge.svg?token=ZTGEX30YIN)](https://codecov.io/gl/ErikKalkoken/aa-killtracker)
[![license](https://img.shields.io/badge/license-MIT-green)](https://gitlab.com/ErikKalkoken/aa-killtracker/-/blob/master/LICENSE)
[![CI/CD Pipeline](https://github.com/AllianceAuth-Apps/aa-killtracker/actions/workflows/ci-cd.yaml/badge.svg)](https://github.com/AllianceAuth-Apps/aa-killtracker/actions/workflows/ci-cd.yaml)
[![codecov](https://codecov.io/github/AllianceAuth-Apps/aa-killtracker/graph/badge.svg?token=gERQsrIq4L)](https://codecov.io/github/AllianceAuth-Apps/aa-killtracker)
[![license](https://img.shields.io/badge/license-MIT-green)](https://github.com/AllianceAuth-Apps/aa-killtracker#MIT-1-ov-file)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![chat](https://img.shields.io/discord/790364535294132234)](https://discord.gg/mevDXbxp4R)
Expand Down
4 changes: 2 additions & 2 deletions killtracker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# pylint: disable = invalid-name
default_app_config = "killtracker.apps.KillmailsConfig"

__version__ = "2.0.0"
__version__ = "2.0.1"
__title__ = "Killtracker"

APP_NAME = "aa-killtracker"
HOMEPAGE_URL = "https://gitlab.com/ErikKalkoken/aa-killtracker"
HOMEPAGE_URL = "https://github.com/AllianceAuth-Apps/aa-killtracker"
USER_AGENT_TEXT = f"{APP_NAME} v{__version__}"
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ classifiers = [
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.2",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
Expand All @@ -38,7 +37,7 @@ dependencies = [
test = ["coverage", "factory_boy", "pook", "django-webtest"]

[project.urls]
Home = "https://gitlab.com/ErikKalkoken/aa-killtracker"
Home = "https://github.com/AllianceAuth-Apps/aa-killtracker"

[tool.flit.module]
name = "killtracker"
Expand Down
Loading