Skip to content

Commit

Permalink
ci: add GH workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
apotterri committed Feb 28, 2024
1 parent 7960ad7 commit 682f1e9
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build
on:
pull_request:
schedule:
- cron: "0 0 * * 0"

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
python: ["3.11"]
include:
- python: "3.11"
tox_env: "py311-web"
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install tox
run: |
python -m pip install --upgrade pip setuptools
pip install tox
- name: Test
run: |
tox -e ${{ matrix.tox_env }}
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ isort = "^5.10.1"
pylint = "^2.16.2"
pytest-shell-utilities = "^1.8.0"
pylint-exit = "^1.2.0"
pytest-timestamper = "^0.0.9"

[build-system]
requires = ["poetry-core>=1.1.0"]
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ commands =
# out of the agent confuse poetry.
env APPMAP_LOG_LEVEL=warning APPMAP=false poetry install -v
py310-web: bash -c "poetry run pylint -j 0 appmap _appmap || pylint-exit $?"
web: poetry run {posargs:pytest}
web: poetry run {posargs:pytest -v}
django3: poetry run pytest _appmap/test/test_django.py

[testenv:vendoring]
Expand Down

0 comments on commit 682f1e9

Please sign in to comment.