Skip to content

Commit b7fc061

Browse files
authored
Merge pull request #6 from agoose77/ci-use-pytest
2 parents b6bcefc + f5dd864 commit b7fc061

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

.github/workflows/tests.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Tests
2+
3+
on: [push]
4+
5+
concurrency:
6+
group: 'tests-${{ github.head_ref || github.run_id }}'
7+
cancel-in-progress: true
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: ["3.7", "3.8", "3.9", "3.10"]
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install -e .
27+
pip install pytest
28+
- name: Test with pytest
29+
run: |
30+
pytest

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ description = "Hatch plugin for versioning from a package.json file"
99
authors = [
1010
{name = "Angus Hollands", email = "[email protected]"},
1111
]
12-
dependencies = []
12+
dependencies = [
13+
"hatchling>=0.21.0"
14+
]
1315
requires-python = ">= 3.7"
1416
readme = "README.md"
1517
license = {text = "MIT"}

0 commit comments

Comments
 (0)