-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (38 loc) · 1.04 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: CI
on:
push:
branches: [main]
tags: ["*"]
pull_request:
workflow_dispatch:
jobs:
test:
strategy:
fail-fast: false
matrix:
python: ["3.10", "3.11", "3.12", "3.13"]
toxenv: [py]
include:
- python: "3.10"
toxenv: flake8
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
- name: Install WireGuard
run: |
sudo apt-get update
sudo apt-get install wireguard-tools
- run: python -m pip install --upgrade pip wheel setuptools
- run: python -m pip install --upgrade tox poetry
- run: tox -e ${{ matrix.toxenv }}
all-tests-succeeded:
# https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert
runs-on: ubuntu-22.04
needs: [test]
steps:
- name: All tests succeeded
run: echo "🎉"