-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathPullRequestToMainDevelopment.yml
More file actions
30 lines (30 loc) · 1.06 KB
/
PullRequestToMainDevelopment.yml
File metadata and controls
30 lines (30 loc) · 1.06 KB
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
name: PullRequestToMainDevelopment
run-name: ${{ github.triggering_actor }} edited a pull-request to the main or development branch
on:
pull_request:
branches: # for an example see: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onevent_nametypes
- main
- development
jobs:
testCode_ubuntu:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
steps:
- run: echo "This job was triggered by a ${{ github.event_name }} and it runs on a ${{ runner.os }}."
- uses: actions/checkout@v3
- name: Python ${{ matrix.python-version }} setup
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Installation of dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -e .
- name: Check the pre-commits
run: pre-commit run --all-files
- name: Run the tests
run: |
pytest -v ./src/FINALES2/tests