Debian Codegraph @

testing/web-platform/tests/tools/third_party/zipp/.github/workflows/main.yml

raw
1 name: Automated Tests
2
3 on: [push, pull_request]
4
5 jobs:
6 test:
7 strategy:
8 matrix:
9 python: [3.6, 3.8, 3.9]
10 platform: [ubuntu-latest, macos-latest, windows-latest]
11 runs-on: ${{ matrix.platform }}
12 steps:
13 - uses: actions/checkout@v2
14 - name: Setup Python
15 uses: actions/setup-python@v2
16 with:
17 python-version: ${{ matrix.python }}
18 - name: Install tox
19 run: |
20 python -m pip install tox
21 - name: Run tests
22 run: tox
23
24 release:
25 needs: test
26 if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
27 runs-on: ubuntu-latest
28
29 steps:
30 - uses: actions/checkout@v2
31 - name: Setup Python
32 uses: actions/setup-python@v2
33 with:
34 python-version: 3.9
35 - name: Install tox
36 run: |
37 python -m pip install tox
38 - name: Release
39 run: tox -e release
40 env:
41 TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
42 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}