Skip to content

Commit 0ce8a28

Browse files
committed
Add Github Actions
1 parent 81a376f commit 0ce8a28

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/tests.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: tzdata contents
2+
3+
on: [push]
4+
5+
jobs:
6+
tests:
7+
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
python-version: [3.6, 3.7, 3.8]
12+
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
13+
env:
14+
TOXENV: py
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: ${{ matrix.python-version }} - ${{ matrix.os }}
19+
uses: actions/setup-python@v1
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
python -m pip install --upgrade tox
26+
- name: Run tests
27+
run: |
28+
tox
29+
30+
other:
31+
runs-on: "ubuntu-latest"
32+
strategy:
33+
matrix:
34+
toxenv: ["build", "pytype"]
35+
env:
36+
TOXENV: ${{ matrix.toxenv }}
37+
38+
steps:
39+
- uses: actions/checkout@v2
40+
- name: ${{ matrix.toxenv }}
41+
uses: actions/setup-python@v1
42+
with:
43+
python-version: 3.8
44+
- name: Install tox
45+
run: |
46+
python -m pip install --upgrade pip
47+
python -m pip install --upgrade tox
48+
- name: Run action
49+
run: |
50+
tox

0 commit comments

Comments
 (0)