forked from stuekero/testing_demo
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (24 loc) · 814 Bytes
/
Copy pathgithub-actions.yml
File metadata and controls
29 lines (24 loc) · 814 Bytes
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
# copy this file to .github/workflows/github-actions.yml in this repository
name: learn-github-actions
on: [push]
jobs:
test-my-python-code:
# select the os-image these jobs should run on
runs-on: ubuntu-latest
# define the Python versions that should be used
strategy:
matrix:
python-version: [2.7, 3.8]
steps:
# step to check out the repository
- uses: actions/checkout@v2
# step to create the Python environment
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# step to install the dependencies
- name: Install dependencies
run: "pip install -r requirements.txt"
# step to run tests
- run: pytest -v