Skip to content

Commit 2e84ca0

Browse files
committed
python-ci
Signed-off-by: Antonio Mendoza Pérez <antmendoza@gmail.com>
1 parent 12d2b24 commit 2e84ca0

File tree

3 files changed

+41
-4
lines changed

3 files changed

+41
-4
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: ["*"]
6+
pull_request:
7+
branches: ["*"]
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: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy