Skip to content

Commit

Permalink
Fix: setup ci for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lwasser committed Feb 21, 2024
1 parent 1494882 commit cbbd0f3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Run pyos meta tests

on:
pull_request:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version:
3.10
- name: Install Hatch
run: pipx install hatch
- name: Run tests
run: hatch run test:run-tests
6 changes: 2 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ update-contributors = "pyosmeta.cli.update_contributors:main"
update-reviews = "pyosmeta.cli.process_reviews:main"
update-review-teams = "pyosmeta.cli.update_review_teams:main"

### Hatch config ###

[tool.hatch]
version.source = "vcs"
build.hooks.vcs.version-file = "src/pyosmeta/_version.py"

### Hatch config ###

[tool.hatch.envs.test]
dependencies = [
"pytest",
Expand All @@ -78,8 +78,6 @@ dependencies = [
#run = "run-coverage --no-cov"
run-tests = "pytest"


[tool.hatch.version]
[tool.black]
line-length = 79
target-version = ['py310']
Expand Down

0 comments on commit cbbd0f3

Please sign in to comment.