Skip to content

Commit b63eb07

Browse files
Merge pull request #121 from discord-modmail/windows-and-mac
feat: add windows and mac testing
2 parents 4bb2f17 + 946bd40 commit b63eb07

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
codecov:
22
require_ci_to_pass: yes
33
notify:
4-
after_n_builds: 2
4+
after_n_builds: 6
55
wait_for_ci: yes
66

77
coverage:

.github/workflows/lint_test.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,12 @@ jobs:
113113
[flake8] %(code)s: %(text)s'"
114114

115115
test:
116-
runs-on: ubuntu-latest
116+
runs-on: ${{ matrix.os }}
117117
strategy:
118118
fail-fast: false
119119
matrix:
120120
python_version: ['3.8', '3.9']
121+
os: [ubuntu-latest, windows-latest, macos-latest]
121122
env:
122123
PYTHON_VERSION: ${{ matrix.python_version }}
123124
steps:
@@ -154,19 +155,19 @@ jobs:
154155
- name: Install dependencies using poetry
155156
if: steps.python_cache.outputs.cache-hit != 'true'
156157
run: |
157-
pip install poetry
158-
poetry install --no-interaction --no-ansi
158+
python -m pip install poetry
159+
python -m poetry install --no-interaction --no-ansi
159160
160161
# Run tests with pytest-cov to generate a coverage report
161162
# This is saved to ./.coverage to be used by codecov to link a
162163
# coverage report to github.
163164
- name: Run tests and generate coverage report
164-
run: pytest -n auto --dist loadfile --cov --disable-warnings -q
165+
run: python -m pytest -n auto --dist loadfile --cov --disable-warnings -q
165166

166167
# This step will publish the coverage reports to codecov.io and
167168
# print a "job" link in the output of the GitHub Action
168169
- name: Publish coverage report to codecov.io
169-
run: codecov
170+
run: python -m codecov
170171

171172
artifact:
172173
name: Generate Artifact

docs/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Added
1111

1212
- Added Dispatcher system, although it is not hooked into important features like thread creation yet. (#71)
13+
- Officially support windows and macos (#121)
1314

1415
### Changed
1516

0 commit comments

Comments
 (0)