Skip to content

Commit

Permalink
Merge pull request #19 from candleindark/workflow
Browse files Browse the repository at this point in the history
Add github action workflow for testing
  • Loading branch information
candleindark authored Oct 22, 2024
2 parents 327a26c + 06672d8 commit 1816243
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Test

on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
tags:
- '*'
workflow_dispatch:

jobs:
test:
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on:
- macos-latest
- windows-latest
- ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Install Hatch
uses: pypa/hatch@install

- name: Run tests
run: hatch run test:python -m pytest --numprocesses=logical -s -v tests
env:
# Needed for coveralls:
GITHUB_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}

# vim:set et sts=2:

0 comments on commit 1816243

Please sign in to comment.