-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (38 loc) · 1.18 KB
/
run_ruffus_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
on:
pull_request:
types: [opened, synchronize]
workflow_dispatch:
name: Run Tests
jobs:
deploy:
name: Tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: taskforce
steps:
#----------------------------------------------
# check-out repo and set-up python
#----------------------------------------------
- name: Check out repository
uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'poetry'
#----------------------------------------------
# install dependencies if cache does not exist
#----------------------------------------------
- name: Install dependencies
run: poetry install --no-interaction --no-root
#----------------------------------------------
# Run tests and publish results
#----------------------------------------------
- uses: pavelzw/pytest-action@v2
with:
emoji: true
verbose: true
job-summary: true
custom-pytest: 'cd taskforce && poetry run pytest '