Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
380 commits
Select commit Hold shift + click to select a range
33ad0f2
Add handling for closing of WebSocket
TheUntraceable Jan 30, 2023
832704b
Merge pull request #212 from EpikCord/fix_flags
TheUntraceable Jan 30, 2023
2fc0080
:art: Format code automatically
github-actions[bot] Jan 30, 2023
56a8852
Set Authorization header to string
TheUntraceable Jan 30, 2023
cd8e108
Merge branch 'rewrite' of https://github.com/EpikCord/EpikCord.py int…
TheUntraceable Jan 30, 2023
8f7767a
:white_check_mark: Add tests for clean url
Sigmanificient Jan 28, 2023
b68f79d
:white_check_mark: Add tests for clear none values
Sigmanificient Jan 28, 2023
3b3a520
:white_check_mark: Add tests for file class
Sigmanificient Jan 28, 2023
b586908
:white_check_mark: Add more tests
Sigmanificient Jan 28, 2023
d36fc28
:adhesive_bandage: Fix json serializer test (i guess orjson vs json b…
Sigmanificient Jan 28, 2023
70c7b2b
Remove completed wait_for Tasks
TheUntraceable Jan 30, 2023
7a40458
Merge pull request #211 from EpikCord/tests
TheUntraceable Jan 30, 2023
bb28c7c
Add way to cancel tasks
TheUntraceable Jan 30, 2023
92f4c43
:art: Format code automatically
github-actions[bot] Jan 30, 2023
4faf55c
Remove duplicate logging
TheUntraceable Jan 30, 2023
b5f4f95
:art: Format code automatically
github-actions[bot] Jan 30, 2023
88933f0
Current state
TheUntraceable Jan 30, 2023
8d567d0
Add event decorator and dispatch function
TheUntraceable Jan 30, 2023
50e3431
:art: Format code automatically
github-actions[bot] Jan 30, 2023
2db5784
Add handling of events
TheUntraceable Jan 30, 2023
ad464d0
Merge branch 'rewrite' of https://github.com/EpikCord/EpikCord.py int…
TheUntraceable Jan 30, 2023
b2645fb
:memo: Fix outdated docstrings
Sigmanificient Jan 30, 2023
e20c005
:sparkles: Add status codes
Sigmanificient Jan 30, 2023
8889478
:recycle: Small code improvements
Sigmanificient Jan 30, 2023
da39a64
:art: Format code automatically
github-actions[bot] Jan 30, 2023
6d4ab83
:art: Format code automatically
github-actions[bot] Jan 30, 2023
bf55c8b
Merge branch 'rewrite' into stuff
TheUntraceable Jan 30, 2023
226ce77
:truck: Move status codes enums to enums.py
Sigmanificient Jan 30, 2023
bbb6905
Fix OpCode names"
TheUntraceable Jan 30, 2023
cf6e1dd
Merge branch 'rewrite' of https://github.com/EpikCord/EpikCord.py int…
TheUntraceable Jan 30, 2023
cff1f9d
:art: Format code automatically
github-actions[bot] Jan 30, 2023
ee89ba0
:bug: Fix import
Sigmanificient Jan 30, 2023
1a7a1c8
:sparkles: Add nox session for unittests
Sigmanificient Jan 30, 2023
2a36f89
:construction_worker: Add unittests into CI
Sigmanificient Jan 30, 2023
93d0066
:white_check_mark: Fix intents initialization
Sigmanificient Jan 30, 2023
31d3846
:test_tube: Add tests for status code
Sigmanificient Jan 30, 2023
c85c9f6
:bug: Fix server error boundaries
Sigmanificient Jan 30, 2023
697cebc
:art: Format code automatically
github-actions[bot] Jan 30, 2023
ebc40a7
:zap: Make CI faster by running unit & e2e as same time
Sigmanificient Jan 30, 2023
a90c4e2
:green_heart: Fix yml syntax
Sigmanificient Jan 30, 2023
454a658
:recycle: Fix Import
Sigmanificient Jan 31, 2023
8688896
:art: Format code automatically
github-actions[bot] Jan 31, 2023
cb687c2
:adhesive_bandage: Fix __init__ import
Sigmanificient Jan 31, 2023
ac6cad6
:art: Format code automatically
github-actions[bot] Jan 31, 2023
ecdb3a4
Current state
TheUntraceable Feb 1, 2023
9e5ca57
Standardise line length of 80
TheUntraceable Feb 1, 2023
6a9761d
Resolve conflicts
TheUntraceable Feb 1, 2023
bf589ed
:art: Format code automatically
github-actions[bot] Feb 1, 2023
c6678a9
Merge pull request #214 from EpikCord/stuff
TheUntraceable Feb 1, 2023
b938838
Fix docstrings
TheUntraceable Feb 7, 2023
7004175
Wrap all OpCodes (apart from DISPATCH)
TheUntraceable Feb 7, 2023
03a6d2c
:art: Format code automatically
github-actions[bot] Feb 7, 2023
de2b36c
Remove check for if opcode is registered
TheUntraceable Feb 7, 2023
1cc9c3d
Merge branch 'rewrite' of https://github.com/EpikCord/EpikCord.py int…
TheUntraceable Feb 7, 2023
7efd7f7
:art: Format code automatically
github-actions[bot] Feb 7, 2023
528367a
:rotating_light: Fix linter issues
Sigmanificient Feb 9, 2023
504b598
:art: Format code automatically
github-actions[bot] Feb 9, 2023
b4698fc
:recycle: Use HTTPCode enum
Sigmanificient Feb 9, 2023
2b0ca4e
:rotating_light: Fix requirements.txt
Sigmanificient Feb 9, 2023
eccca4b
:arrow_up: Add dev requirements
Sigmanificient Feb 9, 2023
e1550a9
:hammer: Rewrite Makefile
Sigmanificient Feb 9, 2023
1b0753c
:hammer: Forget re rule
Sigmanificient Feb 9, 2023
fb352f6
:hammer: That parenthesis
Sigmanificient Feb 9, 2023
006fb4d
Improve logging
TheUntraceable Feb 12, 2023
d4ae0f8
:recycle: Improve HTTP missing check
Sigmanificient Feb 12, 2023
2660f54
Improve logging
TheUntraceable Feb 12, 2023
36e2cba
Resolve conflicts
TheUntraceable Feb 12, 2023
85d398e
Handle event better
TheUntraceable Feb 12, 2023
5970bad
:bug: Fix CI prettifier
Sigmanificient Feb 12, 2023
f491676
:art: Format code automatically
github-actions[bot] Feb 12, 2023
440e79f
:recycle: Remove magic constant for flags
Sigmanificient Feb 12, 2023
4b75b8e
:recycle: Remove magic constant for tasks
Sigmanificient Feb 12, 2023
85d1d29
:recycle: Remove magic indexing for mime type guesser
Sigmanificient Feb 12, 2023
fa31b38
:recycle: Simplify clean url
Sigmanificient Feb 12, 2023
7baac3d
:recycle: Rooting out ambiguity of gateway limitations and time values
Sigmanificient Feb 12, 2023
1f37eba
:recycle: Improve close_dispatcher readability
Sigmanificient Feb 12, 2023
2bf40ec
:art: Format code automatically
github-actions[bot] Feb 12, 2023
64e46fa
Resolve issues with RECONNECT
TheUntraceable Feb 12, 2023
7782b19
:art: Format code automatically
github-actions[bot] Feb 12, 2023
129bee9
Current state
TheUntraceable Feb 12, 2023
5635ad9
Merge branch 'rewrite' of https://github.com/EpikCord/EpikCord.py int…
TheUntraceable Feb 12, 2023
452c783
Fix event handling
TheUntraceable Feb 13, 2023
3f12758
:art: Format code automatically
github-actions[bot] Feb 13, 2023
2401a46
Add Get Gateway Bot endpoint
TheUntraceable Feb 14, 2023
5cd113b
:art: Format code automatically
github-actions[bot] Feb 14, 2023
44392d3
Add Application object"
TheUntraceable Feb 14, 2023
317fd6d
Merge branch 'rewrite' of https://github.com/EpikCord/EpikCord.py int…
TheUntraceable Feb 14, 2023
330bc87
:art: Format code automatically
github-actions[bot] Feb 14, 2023
a6befcc
Add user object
TheUntraceable Feb 14, 2023
6e2f755
Fix conflicts
TheUntraceable Feb 14, 2023
ebb4604
:art: Format code automatically
github-actions[bot] Feb 14, 2023
9cdc9a9
:rotating_light: Fix lint issue
Sigmanificient Feb 15, 2023
9071d23
:rotating_light: Fix docstring line length
Sigmanificient Feb 15, 2023
a03d4df
:recycle: Improve API class instanciation
Sigmanificient Feb 15, 2023
64f092e
:recycle: Shorten some names and remove dead imports
Sigmanificient Feb 15, 2023
a2f2442
:art: Format code automatically
github-actions[bot] Feb 15, 2023
6cab95d
:rotating_light: Fix lint issue
Sigmanificient Feb 15, 2023
a8913e2
:green_heart: Fix coverage nox session name
Sigmanificient Feb 15, 2023
eadbdf2
Add _data attribute to data classes
TheUntraceable Feb 15, 2023
ace048c
:rewind: Rollback name change for "role_connections_verification_url"
Sigmanificient Feb 15, 2023
b3da3c9
:white_check_mark: Add test for None Value
Sigmanificient Feb 15, 2023
22d2fac
:green_heart: Fix coverage report CI for rewrite
Sigmanificient Feb 15, 2023
b686e9a
Merge branch 'rewrite' into instance_or_none
Sigmanificient Feb 15, 2023
c94b9e7
:white_check_mark: Add minor unittests
Sigmanificient Feb 15, 2023
a465447
:green_heart: Ignore git folder
Sigmanificient Feb 15, 2023
1cd88be
:fire: Remove uneeded comment
Sigmanificient Feb 16, 2023
fcd4e4f
Merge pull request #215 from EpikCord/instance_or_none
TheUntraceable Feb 16, 2023
27ce860
Start on Interaction
TheUntraceable Feb 16, 2023
033a861
Solve conflicts
TheUntraceable Feb 16, 2023
9f03c5f
:art: Format code automatically
github-actions[bot] Feb 16, 2023
ec99b6f
Add GuildMember object
TheUntraceable Feb 16, 2023
f36f29b
Add flags
TheUntraceable Feb 16, 2023
adeaf41
Make instance_or_none more flexible
TheUntraceable Feb 16, 2023
52f42ab
Remove duplicate name
TheUntraceable Feb 16, 2023
5ccd9c5
Make User take in Client
TheUntraceable Feb 16, 2023
f2f0812
Start off interactions.poy
TheUntraceable Feb 16, 2023
fde3de6
:art: Format code automatically
github-actions[bot] Feb 16, 2023
f7dd4d1
Start working on client commands
TheUntraceable Feb 16, 2023
77b4804
Resolve conflicts
TheUntraceable Feb 16, 2023
0383817
Fix an issue
TheUntraceable Feb 17, 2023
5f1ce37
:art: Format code automatically
github-actions[bot] Feb 17, 2023
6372f89
Condense localization_list_to_dict
TheUntraceable Feb 17, 2023
299e8e5
Condense localization_list_to_dict
TheUntraceable Feb 17, 2023
461c414
Solve circular imports
TheUntraceable Feb 17, 2023
5ac38ad
Add TokenStore.remove_from utilit
TheUntraceable Feb 17, 2023
3bd118e
Debug what URL is being ws_connect'd to
TheUntraceable Feb 17, 2023
953d2a5
Create option classes
TheUntraceable Feb 18, 2023
4f06e3f
Current state
TheUntraceable Feb 20, 2023
83b81c1
:art: Format code automatically
github-actions[bot] Feb 20, 2023
f2bd482
Create our own types
TheUntraceable Feb 22, 2023
2f3422d
Fix conflicts
TheUntraceable Feb 22, 2023
30c35a7
:art: Format code automatically
github-actions[bot] Feb 22, 2023
7b9fb73
Fix import
TheUntraceable Feb 22, 2023
dfa9d8a
:art: Format code automatically
github-actions[bot] Feb 22, 2023
b3ab332
Fix check
TheUntraceable Feb 22, 2023
3627036
Move check up
TheUntraceable Feb 22, 2023
192cff8
Merge branch 'rewrite' of https://github.com/EpikCord/EpikCord.py int…
TheUntraceable Feb 22, 2023
71bd406
Use ApplicationCommandChoiceData instead of Dict typehint
TheUntraceable Feb 22, 2023
9534518
:art: Format code automatically
github-actions[bot] Feb 22, 2023
7d669bd
Add return type hint
TheUntraceable Feb 22, 2023
a5630e8
Merge branch 'rewrite' of https://github.com/EpikCord/EpikCord.py int…
TheUntraceable Feb 22, 2023
3a6e22d
Add check for min_length/value > max_length/value
TheUntraceable Feb 22, 2023
d57dd33
Make channel_types Optional
TheUntraceable Feb 22, 2023
9100b4d
:art: Format code automatically
github-actions[bot] Feb 22, 2023
7f829b9
Add more types
TheUntraceable Feb 23, 2023
eebd2ab
:art: Format code automatically
github-actions[bot] Feb 23, 2023
7d636cc
:green_heart: Ignore .git folder within codespell
Sigmanificient Feb 24, 2023
bc5d35a
:recycle: Passing lint
Sigmanificient Feb 24, 2023
573302a
:art: Format code automatically
github-actions[bot] Feb 24, 2023
a5ae2c6
:green_heart: Fix codespell argument passing (WHY codespell)
Sigmanificient Feb 24, 2023
2c03b68
url -> URL
TheUntraceable Feb 28, 2023
dd848ef
Merge branch 'rewrite' of https://github.com/EpikCord/EpikCord.py int…
TheUntraceable Feb 28, 2023
b47a491
:art: Format code automatically
github-actions[bot] Feb 28, 2023
2380964
Test webhook
TheUntraceable Mar 14, 2023
6a6dfb1
:art: Format code automatically
github-actions[bot] Mar 14, 2023
c60f25d
Try webhook again
TheUntraceable Mar 14, 2023
0797954
:art: Format code automatically
github-actions[bot] Mar 14, 2023
64fad43
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
TheUntraceable Mar 16, 2023
d41410d
:art: Format code automatically
github-actions[bot] Mar 16, 2023
eeb5c38
:wrench: Add flake configuration
Sigmanificient Mar 16, 2023
b99f184
:wrench: Add git attributes
Sigmanificient Mar 16, 2023
a424c52
:art: Format code automatically
github-actions[bot] Mar 16, 2023
4407465
:adhesive_bandage: Mark images as binary
Sigmanificient Mar 17, 2023
2770746
Revert ":art: Format code automatically"
Sigmanificient Mar 17, 2023
3146a1f
Start work on Sub Command and Sub Command Groups
TheUntraceable Mar 20, 2023
10cd8ae
Merge branch 'rewrite' of https://github.com/EpikCord/EpikCord.py int…
TheUntraceable Mar 20, 2023
fff14a9
:art: Format code automatically
github-actions[bot] Mar 20, 2023
9c92636
Import future
TheUntraceable Mar 20, 2023
061d45b
Merge branch 'rewrite' of https://github.com/EpikCord/EpikCord.py int…
TheUntraceable Mar 20, 2023
ad23ba1
Add support for sub commands and subcommand groups
TheUntraceable Mar 23, 2023
5085da9
:art: Format code automatically
github-actions[bot] Mar 23, 2023
ca59fd3
Better handle 1000 and 1001
TheUntraceable Mar 23, 2023
aa11d12
Merge branch 'rewrite' of https://github.com/EpikCord/EpikCord.py int…
TheUntraceable Mar 23, 2023
339aacd
:art: Format code automatically
github-actions[bot] Mar 23, 2023
b8a683d
Add ReceivedOption
TheUntraceable Mar 24, 2023
51d7ce7
Merge branch 'rewrite' of https://github.com/EpikCord/EpikCord.py int…
TheUntraceable Mar 24, 2023
94879cc
:art: Format code automatically
github-actions[bot] Mar 24, 2023
cd0bcfc
Move Locale to Localization.py
TheUntraceable Mar 28, 2023
e8f5f8f
Fix conflicts
TheUntraceable Mar 28, 2023
3470cfd
Log when closing
TheUntraceable Apr 1, 2023
6393eb5
:art: Format code automatically
github-actions[bot] Apr 1, 2023
f6240ab
Remove duplicate close functions
TheUntraceable Apr 6, 2023
287b0c5
Merge branch 'rewrite' of https://github.com/EpikCord/EpikCord.py int…
TheUntraceable Apr 6, 2023
3ad5652
Move gateway types to types/gateway.py
TheUntraceable Apr 6, 2023
58df116
:art: Format code automatically
github-actions[bot] Apr 6, 2023
d8f4e1a
Import Locale from locales.py
TheUntraceable Apr 6, 2023
1ffe7cd
Fix linter
TheUntraceable Apr 6, 2023
1c5e727
Change author email
TheUntraceable Apr 7, 2023
5442d3f
:art: Format code automatically
github-actions[bot] Apr 7, 2023
78f238b
Log code that is passed
TheUntraceable Apr 12, 2023
4554c68
:art: Format code automatically
github-actions[bot] Apr 12, 2023
b255fe3
Change code after logging
TheUntraceable Apr 12, 2023
303badf
Merge branch 'rewrite' of https://github.com/EpikCord/EpikCord.py int…
TheUntraceable Apr 12, 2023
78f1944
Store heartbeating task
TheUntraceable Apr 13, 2023
30eac0b
Log when resetting counter
TheUntraceable Apr 13, 2023
57ae4b4
Remove verbose debug
TheUntraceable Apr 13, 2023
ace2d2c
Make code default to 4000
TheUntraceable Apr 13, 2023
280dcc4
Log when resetting
TheUntraceable Apr 13, 2023
d57890a
:art: Format code automatically
github-actions[bot] Apr 13, 2023
77094b4
Log task names
TheUntraceable Apr 13, 2023
e394d88
:art: Format code automatically
github-actions[bot] Apr 13, 2023
a363727
Log in start task
TheUntraceable Apr 13, 2023
34a9794
Set name to Task
TheUntraceable Apr 13, 2023
2e30e34
Merge branch 'rewrite' of https://github.com/EpikCord/EpikCord.py int…
TheUntraceable Apr 13, 2023
0452bc5
:art: Format code automatically
github-actions[bot] Apr 13, 2023
b639a62
Current state
TheUntraceable Apr 13, 2023
072909f
Fix conflicts
TheUntraceable Apr 13, 2023
b73fa3f
Fix task code
TheUntraceable Apr 13, 2023
641d4a4
:art: Format code automatically
github-actions[bot] Apr 13, 2023
23c6fe4
Move away from tasks
TheUntraceable Apr 14, 2023
088cac3
Merge branch 'rewrite' of https://github.com/EpikCord/EpikCord.py int…
TheUntraceable Apr 14, 2023
60d0e9e
reset every 60s
TheUntraceable Apr 14, 2023
9d9e9d2
Cancel task when closing
TheUntraceable Apr 14, 2023
b417582
Send RESUME payload after HELLO
TheUntraceable Apr 14, 2023
583b427
Attach QS Params to WS URL
TheUntraceable Apr 14, 2023
1b6aabb
Wait for HELLO only when RESUMing
TheUntraceable Apr 14, 2023
81d5fdf
Stop heartbeat task when closing
TheUntraceable Apr 15, 2023
2b439ba
Add ruff to pyproject.toml
TheUntraceable Apr 29, 2023
0de32ec
Remove mentions of Flake8
TheUntraceable Apr 29, 2023
1496139
In nox use ruff
TheUntraceable Apr 29, 2023
0e8bddf
Move isort config to setup.cfg
TheUntraceable Apr 29, 2023
f0a1c30
:art: Format code automatically
github-actions[bot] Apr 29, 2023
2dc987c
Log when waiting for events
TheUntraceable Jun 16, 2023
706dcc6
Change resuming method
TheUntraceable Jun 17, 2023
596ce24
:art: Format code automatically
github-actions[bot] Jun 17, 2023
0df2183
Add return typehint for SubCommandGroup.command
TheUntraceable Jun 17, 2023
20bd873
Log when closing websocket
TheUntraceable Jun 17, 2023
1fc654e
Check for MsgType
TheUntraceable Jun 17, 2023
ec4e274
Add Type safety
TheUntraceable Jun 21, 2023
af0048e
Move resume logic to hello event handler
TheUntraceable Jun 21, 2023
2a8fbff
Log if client closing or server
TheUntraceable Jun 21, 2023
6b47981
Add reason to closing
TheUntraceable Jun 21, 2023
dcabf02
Format with black
TheUntraceable Jun 21, 2023
a2e18c5
Log when wait_for event completed
TheUntraceable Jun 21, 2023
4daebe3
Fix line too long issue
TheUntraceable Jun 21, 2023
b36713e
Account for binary messages
TheUntraceable Jun 21, 2023
d2cc81e
:art: Format code automatically
github-actions[bot] Jun 21, 2023
5467b26
Remove weird log
TheUntraceable Jun 21, 2023
2744c6e
Merge branch 'rewrite' of https://github.com/EpikCord/EpikCord.py int…
TheUntraceable Jun 21, 2023
39e0bdd
:art: Format code automatically
github-actions[bot] Jun 21, 2023
211e0cb
Return when handling close
TheUntraceable Jun 21, 2023
f3962d4
Merge branch 'rewrite' of https://github.com/EpikCord/EpikCord.py int…
TheUntraceable Jun 21, 2023
f817db8
Reset HTTP when reconnecting
TheUntraceable Jun 21, 2023
1a6cf73
Fix circular import
TheUntraceable Jun 21, 2023
b56d282
:art: Format code automatically
github-actions[bot] Jun 21, 2023
28c2bcd
Current state
TheUntraceable Jun 25, 2023
8cf339b
CUrrent status
TheUntraceable Jul 24, 2023
2209db1
Fix conflicts
TheUntraceable Jul 24, 2023
a4ca2ea
:art: Format code automatically
github-actions[bot] Jul 24, 2023
28f6ebe
:art: Format code automatically
github-actions[bot] May 26, 2025
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
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = false
max_line_length = 80
tab_width = 4

[*.nix]
indent_size = 2
tab_width = 2

[*.yml]
tab_width = 2
indent_size = 2
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* text=lf
* eol=lf

*.png binary
*.jpg binary
10 changes: 0 additions & 10 deletions .github/workflows/bandit.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/black.yml

This file was deleted.

194 changes: 186 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,104 @@ name: CI

on:
pull_request:
types: [opened, reopened]
workflow_dispatch:
push:

jobs:
ci:
bandit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.8
cache: 'pip'
- run: pip install bandit
- run: bandit --recursive EpikCord

black:
runs-on: ubuntu-latest
steps:
- name: Get branch names.
id: branch-names
uses: tj-actions/branch-names@v6

- uses: actions/checkout@v2
with:
ref: ${{ steps.branch-names.outputs.head_ref_branch }}

- name: Set Up git
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git pull

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
cache: 'pip'

- name: run Formatter
run: |
make nox_format

- name: Push changes
run: |
git commit -m ":art: Format code automatically" -a || echo "No changes to commit"
git push || echo "No changes to push"

codespell:
if: ${{ always() }}
needs: black
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.8
cache: 'pip'
- run: pip install codespell
- run: codespell --skip="./docs/*" --skip="./.git/*"

lint:
if: ${{ always() }}
needs: black
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Python Setup
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
architecture: 'x64'

- name: Install dependencies
run: pip install nox git+https://github.com/Bluenix2/discord-typings

- name: Run nox
run: nox -s lint

pyright:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Python Setup
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
architecture: 'x64'

- name: Install dependencies
run: pip install nox git+https://github.com/Bluenix2/discord-typings

- name: Run nox
run: nox -s pyright

install:
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
Expand All @@ -14,19 +109,102 @@ jobs:

name: Nox - py ${{ matrix.python }} - ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Python Setup
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
architecture: 'x64'

- name: Update Pip
run: pip install -U pip
cache: 'pip'

- name: Install dependencies
run: pip install nox git+https://github.com/Bluenix2/discord-typings

- name: Run nox
run: nox -s lint mypy
run: nox -s install

circular_imports:
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.8
cache: 'pip'

- name: Install dependencies
run: pip install nox git+https://github.com/Bluenix2/discord-typings

- name: Check for circular imports
run: nox -s imports

unit:
needs: circular_imports
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
python: [ '3.8', '3.9', '3.10' ]
os: [ ubuntu, windows, macos ]
fail-fast: true

steps:
- uses: actions/checkout@v3

- name: Python Setup
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: 'pip'

- name: Install dependencies
run: pip install nox git+https://github.com/Bluenix2/discord-typings

- name: Run E2E tests
run: nox -s unit

e2e:
needs: circular_imports
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
python: [ '3.8', '3.9', '3.10' ]
os: [ ubuntu, windows, macos ]
fail-fast: true

steps:
- uses: actions/checkout@v3

- name: Python Setup
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: 'pip'

- name: Install dependencies
run: pip install nox git+https://github.com/Bluenix2/discord-typings

- name: Run E2E tests
run: nox -s e2e

coverage:
needs: [unit, e2e]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Python Setup
uses: actions/setup-python@v4
with:
python-version: 3.8
cache: 'pip'

- name: Install dependencies
run: pip install nox git+https://github.com/Bluenix2/discord-typings

- name: Run coverage
run: nox -s cov

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
10 changes: 0 additions & 10 deletions .github/workflows/codespell.yml

This file was deleted.

7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,10 @@ RoboEpikLogs.log
epikcord.log
*.mp3
*.mp4

# Coverage
.coverage
coverage.xml

# Makefile deps
._*.lock
23 changes: 0 additions & 23 deletions .readthedocs.yml

This file was deleted.

Loading