Skip to content

Commit

Permalink
First run at github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
fcooper8472 committed Jan 1, 2024
1 parent a8dc661 commit c883569
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test-os.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Test: Windows, macOS, Linux"

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:

jobs:
run-tests:

runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["windows-latest", "macos-latest", "ubuntu-latest"]

steps:

- uses: actions/checkout@v3

- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
poetry install
- name: Test with pytest
run: |
poetry run pytest
36 changes: 36 additions & 0 deletions .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Test: Py 3.9-3.11"

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:

jobs:
run-tests:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]

steps:

- uses: actions/checkout@v3

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
poetry install
- name: Test with pytest
run: |
poetry run pytest

0 comments on commit c883569

Please sign in to comment.