Skip to content

Commit 909ca3a

Browse files
committed
Testing using PyPI
1 parent e33f263 commit 909ca3a

2 files changed

Lines changed: 40 additions & 1 deletion

File tree

.github/workflows/main.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
branches:
55
- main
66
- minor
7-
- major
87
push:
98
branches:
109
- main

.github/workflows/testing.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Automated Testing
2+
on:
3+
pull_request:
4+
branches:
5+
- major
6+
push:
7+
branches:
8+
- major
9+
10+
jobs:
11+
build:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: [ubuntu-latest, windows-latest, macos-13, macos-latest]
17+
py-version: ["3.10", "3.11", "3.12"]
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
# general Python setup
23+
- name: Set up Python ${{ matrix.py-version }}
24+
uses: actions/setup-python@v5
25+
with:
26+
python-version: ${{ matrix.py-version }}
27+
28+
- name: Update pip & install testing pkgs
29+
run: |
30+
python -VV
31+
python -m pip install --upgrade pip setuptools wheel
32+
33+
# install testing
34+
- name: Install package and test deps
35+
run: |
36+
pip install .[testing] # install the package and the testing deps
37+
38+
- name: Test with pytest
39+
run: |
40+
pytest

0 commit comments

Comments
 (0)