examples updated: test input file download and more usage example are… #11
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
# action.yml | |
name: 'Tests' | |
on: | |
# Triggers the workflow on push or pull request events but only for the "main" branch | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
# Allows to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: run tests | |
uses: docker://freddsle/unpast:latest | |
with: | |
entrypoint: bash | |
args: > | |
-c " | |
cd /github/workspace | |
&& pip install pytest --target /tmp | |
&& PYTHONPATH=/tmp python -m pytest test -m 'not slow' | |
&& PYTHONPATH=/tmp python -m pytest test --durations=0 | |
" |