-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c151cc4
commit 747532d
Showing
5 changed files
with
132 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: pytest-arch | ||
run-name: Run pytest on Arch Linux | ||
on: | ||
push: | ||
branches: 'main' | ||
pull_request: | ||
jobs: | ||
pytest: | ||
runs-on: archlinux:latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.13"] | ||
name: pytest-arch-python-${{ matrix.python-version }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
pip3 install .[tests] | ||
- name: Run pytest | ||
env: | ||
PYTEST_ADDOPTS: "--color=yes" | ||
run: | | ||
python3 -m pytest -v -n auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: pytest-macos | ||
run-name: Run pytest on macOS | ||
on: | ||
push: | ||
branches: 'main' | ||
pull_request: | ||
|
||
jobs: | ||
pytest: | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.13"] | ||
name: pytest-macos-python-${{ matrix.python-version }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Set up Homebrew | ||
uses: Homebrew/actions/setup-homebrew@master | ||
- name: Install Homebrew dependencies | ||
run: | | ||
rm -f /usr/local/bin/2to3* /usr/local/bin/python3* /usr/local/bin/idle3* \ | ||
/usr/local/bin/pydoc3* # Homebrew will fail if these exist | ||
brew install virtualenv | ||
- name: Install Python dependencies | ||
run: | | ||
python3 -m venv .venv | ||
source .venv/bin/activate | ||
pip install .[tests] | ||
- name: Run pytest | ||
env: | ||
PYTEST_ADDOPTS: "--color=yes" | ||
run: | | ||
source .venv/bin/activate | ||
pytest -v -n auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: publish | ||
run-name: Publish to PyPi | ||
on: | ||
release: | ||
types: [published] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build-and-publish: | ||
name: Build and publish to PyPi | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
- name: Install build | ||
run: | | ||
python3 -m pip install build | ||
python3 -m pip install setuptools --upgrade | ||
- name: Build | ||
run: | | ||
python3 -m build --sdist --wheel --outdir dist/ . | ||
- name: Upload to release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
gh release upload ${{ github.event.release.tag_name }} dist/* | ||
- name: Publish | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
password: ${{ secrets.TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: pytest-ubuntu | ||
run-name: Run pytest on Ubuntu | ||
on: | ||
push: | ||
branches: 'main' | ||
pull_request: | ||
jobs: | ||
pytest: | ||
runs-on: ubuntu:latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.13"] | ||
name: pytest-ubuntu-python-${{ matrix.python-version }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
pip3 install .[tests] | ||
- name: Run pytest | ||
env: | ||
PYTEST_ADDOPTS: "--color=yes" | ||
run: | | ||
python3 -m pytest -v -n auto |
Empty file.