Skip to content

Commit f08c083

Browse files
authored
Merge pull request #7 from antmendoza/python_ci
Python ci
2 parents f651eb1 + 4909b68 commit f08c083

File tree

3 files changed

+40
-3
lines changed

3 files changed

+40
-3
lines changed

.github/workflows/python-ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
jobs:
10+
tests:
11+
name: "Python ${{ matrix.python-version }}"
12+
runs-on: "ubuntu-latest"
13+
14+
15+
strategy:
16+
matrix:
17+
python-version: ["3.5", "3.6", "3.7", "3.8", "3.9"]
18+
19+
steps:
20+
- uses: "actions/checkout@v2"
21+
- uses: "actions/setup-python@v2"
22+
with:
23+
python-version: "${{ matrix.python-version }}"
24+
- name: Install dependencies
25+
run: |
26+
pip install pipenv
27+
pip install build
28+
pipenv install --dev
29+
30+
- name: Test
31+
run: |
32+
pipenv run pytest
33+
34+
- name: Build
35+
run: |
36+
python -m build
37+

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ pytest = "==6.2.5"
1313
pytest-runner = "==5.3.1"
1414

1515
[requires]
16-
python_version = "3.9"
16+
python_version = "3"

Pipfile.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)