Skip to content

Commit 8f4fe6c

Browse files
authored
Create python-app.yml
1 parent 94dd3cd commit 8f4fe6c

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/python-app.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Pie Test
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
# Run in all these versions of Python
19+
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
20+
21+
steps:
22+
# Checkout the latest code from the repo
23+
- name: Checkout repo
24+
uses: actions/checkout@v2
25+
# Setup which version of Python to use
26+
- name: Set Up Python ${{ matrix.python-version }}
27+
uses: actions/setup-python@v2
28+
with:
29+
python-version: ${{ matrix.python-version }}
30+
# Display the Python version being used
31+
- name: Display Python version
32+
run: python -c "import sys; print(sys.version)"
33+
# Install the package using the setup.py
34+
- name: Install pytest
35+
run: |
36+
python -m pip install --upgrade pip
37+
pip install piencrypt
38+
# Run the tests. I'm using pytest and the file is in the tests directory.
39+
- name: Run tests
40+
run: python Test/pie_test.py

0 commit comments

Comments
 (0)