Skip to content

Commit

Permalink
Merge pull request #53 from jurraca/ci-run-tests
Browse files Browse the repository at this point in the history
CI: run python tests in new job
  • Loading branch information
fjahr authored Jan 22, 2025
2 parents bf38f02 + 8353378 commit 46f8ab6
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name: Kartograf CI
name: Build outputs

on:
push:
branches: [main]
pull_request:
branches: [main]
branches: [master]

jobs:
build-and-test:
build-nix-outputs:
runs-on: ubuntu-latest

steps:
Expand All @@ -19,4 +17,3 @@ jobs:
nix flake check
nix build .#devShells.x86_64-linux.default
nix build .#default
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Run tests

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install dependencies
run: |
pip install -r requirements-dev.txt
- name: Run Tests
run: |
pytest tests/

0 comments on commit 46f8ab6

Please sign in to comment.