-
Notifications
You must be signed in to change notification settings - Fork 17
121 lines (119 loc) · 4.1 KB
/
Copy pathtest.yml
File metadata and controls
121 lines (119 loc) · 4.1 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
name: Test
on:
pull_request:
push:
branches:
- main
- "v*.*"
- jk-tmp
jobs:
# linux:
# runs-on: ubuntu-22.04
# strategy:
# fail-fast: false
# matrix:
# include:
# - pair: { elixir: "1.15.8", otp: "25.3" }
# python_minor: "10"
# - pair: { elixir: "1.18.4", otp: "27.2" }
# python_minor: "10"
# - pair: { elixir: "1.18.4", otp: "27.2" }
# python_minor: "11"
# - pair: { elixir: "1.18.4", otp: "27.2" }
# python_minor: "12"
# - pair: { elixir: "1.18.4", otp: "27.2" }
# python_minor: "13"
# lint: true
# env:
# MIX_ENV: test
# PYTHONX_TEST_PYTHON_MINOR: ${{ matrix.python_minor }}
# name: Linux x86_64 (3.${{ matrix.python_minor }}, ${{ matrix.pair.elixir }}, ${{ matrix.pair.otp }})
# steps:
# - uses: actions/checkout@v4
# - uses: erlef/setup-beam@v1
# with:
# otp-version: ${{ matrix.pair.otp }}
# elixir-version: ${{ matrix.pair.elixir }}
# - uses: actions/cache@v4
# with:
# path: |
# deps
# _build
# key: ${{ runner.os }}-mix-${{ matrix.pair.elixir }}-${{ matrix.pair.otp }}-${{ hashFiles('**/mix.lock') }}
# restore-keys: |
# ${{ runner.os }}-mix-${{ matrix.pair.elixir }}-${{ matrix.pair.otp }}-
# - run: mix deps.get
# - run: mix format --check-formatted
# if: ${{ matrix.lint }}
# - run: mix deps.unlock --check-unused
# if: ${{ matrix.lint }}
# - run: mix deps.compile
# - run: mix compile --warnings-as-errors
# if: ${{ matrix.lint }}
# - run: mix test
windows:
runs-on: windows-2022
strategy:
fail-fast: false
matrix:
include:
# - pair: { elixir: "1.15.8", otp: "25.3" }
# python_minor: "10"
- pair: { elixir: "1.18.4", otp: "27.2" }
python_minor: "13"
env:
MIX_ENV: test
PYTHONX_TEST_PYTHON_MINOR: ${{ matrix.python_minor }}
name: Windows x86_64 (3.${{ matrix.python_minor }}, ${{ matrix.pair.elixir }}, ${{ matrix.pair.otp }})
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.pair.otp }}
elixir-version: ${{ matrix.pair.elixir }}
- uses: actions/cache@v4
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-${{ matrix.pair.elixir }}-${{ matrix.pair.otp }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-${{ matrix.pair.elixir }}-${{ matrix.pair.otp }}-
- uses: ilammy/msvc-dev-cmd@v1
- run: mix deps.get
- run: mix deps.compile
- run: mix test
# macos:
# runs-on: macos-14
# strategy:
# fail-fast: false
# matrix:
# include:
# - pair: { elixir: "1.15.8", otp: "25.3" }
# python_minor: "10"
# - pair: { elixir: "1.18.4", otp: "27.2" }
# python_minor: "13"
# env:
# MIX_ENV: test
# PYTHONX_TEST_PYTHON_MINOR: ${{ matrix.python_minor }}
# name: macOS x86_64 (3.${{ matrix.python_minor }}, ${{ matrix.pair.elixir }}, ${{ matrix.pair.otp }})
# steps:
# - uses: actions/checkout@v4
# - run: |
# curl -fsSO https://elixir-lang.org/install.sh
# sh install.sh elixir@${{ matrix.pair.elixir }} otp@${{ matrix.pair.otp }}
# otp_bin=($HOME/.elixir-install/installs/otp/*/bin)
# elixir_bin=($HOME/.elixir-install/installs/elixir/*/bin)
# echo "$otp_bin" >> "$GITHUB_PATH"
# echo "$elixir_bin" >> "$GITHUB_PATH"
# - uses: actions/cache@v4
# with:
# path: |
# deps
# _build
# key: ${{ runner.os }}-mix-${{ matrix.pair.elixir }}-${{ matrix.pair.otp }}-${{ hashFiles('**/mix.lock') }}
# restore-keys: |
# ${{ runner.os }}-mix-${{ matrix.pair.elixir }}-${{ matrix.pair.otp }}-
# - run: mix deps.get
# - run: mix deps.compile
# - run: mix test