Extracted src/fk/core from fk-desktop. Updated README, added MockTimer. #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests and checks | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
permissions: | |
checks: write | |
jobs: | |
run-tests: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Create Virtual Environment | |
run: | | |
python3 -m venv venv | |
source venv/bin/activate | |
- name: Install dependencies | |
run: | | |
pip install -r requirements-test.txt | |
- name: Run unit tests for fk.core | |
run: | | |
PYTHONPATH=src:tests coverage run -m xmlrunner -o test-results discover -v fk.tests | |
- name: Publish test report | |
uses: mikepenz/action-junit-report@v4 | |
with: | |
report_paths: 'test-results/TEST-*.xml' | |
include_passed: true | |
- name: Upload code coverage to coveralls.io | |
run: coveralls --service=github | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |