Skip to content

Commit 6e2f930

Browse files
committed
Up
1 parent 50f684e commit 6e2f930

File tree

2 files changed

+20
-102
lines changed

2 files changed

+20
-102
lines changed

.github/workflows/test.yml

Lines changed: 19 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -4,118 +4,48 @@ on:
44
push:
55
branches:
66
- main
7-
- "v*.*"
8-
- jk-tmp
97
jobs:
10-
linux:
11-
runs-on: ubuntu-24.04
8+
main:
9+
runs-on: ubuntu-latest
1210
strategy:
1311
fail-fast: false
1412
matrix:
1513
include:
16-
- pair: { elixir: "1.15.8", otp: "25.3" }
17-
python_minor: "10"
18-
# - pair: { elixir: "1.18.1", otp: "27.2" }
19-
# python_minor: "10"
20-
# - pair: { elixir: "1.18.1", otp: "27.2" }
21-
# python_minor: "11"
22-
# - pair: { elixir: "1.18.1", otp: "27.2" }
23-
# python_minor: "12"
24-
- pair: { elixir: "1.18.1", otp: "27.2" }
25-
python_minor: "13"
14+
- pair:
15+
elixir: "1.15.8"
16+
otp: "25.3"
17+
# otp: "25.3.2.18"
2618
lint: true
27-
env:
28-
# MIX_ENV: test
29-
PYTHONX_TEST_PYTHON_MINOR: ${{ matrix.python_minor }}
30-
name: Linux x86_64 (3.${{ matrix.python_minor }}, ${{ matrix.pair.elixir }}, ${{ matrix.pair.otp }})
3119
steps:
3220
- uses: actions/checkout@v4
21+
3322
- uses: erlef/setup-beam@v1
3423
with:
35-
otp-version: ${{ matrix.pair.otp }}
36-
elixir-version: ${{ matrix.pair.elixir }}
24+
otp-version: ${{matrix.pair.otp}}
25+
elixir-version: ${{matrix.pair.elixir}}
26+
3727
- uses: actions/cache@v4
3828
with:
3929
path: |
4030
deps
4131
_build
42-
key: ${{ runner.os }}-mix-${{ matrix.pair.elixir }}-${{ matrix.pair.otp }}-${{ hashFiles('**/mix.lock') }}
32+
key: ${{ runner.os }}-mix-${{matrix.pair.elixir}}-${{matrix.pair.otp}}-${{ hashFiles('**/mix.lock') }}
4333
restore-keys: |
44-
${{ runner.os }}-mix-${{ matrix.pair.elixir }}-${{ matrix.pair.otp }}-
34+
${{ runner.os }}-mix-
35+
4536
- run: mix deps.get
37+
4638
- run: mix format --check-formatted
4739
if: ${{ matrix.lint }}
40+
4841
- run: mix deps.unlock --check-unused
4942
if: ${{ matrix.lint }}
43+
5044
- run: mix deps.compile
45+
5146
- run: mix compile --warnings-as-errors
5247
if: ${{ matrix.lint }}
53-
- run: mix test
5448

55-
# windows:
56-
# runs-on: windows-2019
57-
# strategy:
58-
# fail-fast: false
59-
# matrix:
60-
# include:
61-
# - pair: { elixir: "1.15.8", otp: "25.3" }
62-
# python_minor: "10"
63-
# - pair: { elixir: "1.18.1", otp: "27.2" }
64-
# python_minor: "13"
65-
# env:
66-
# MIX_ENV: test
67-
# PYTHONX_TEST_PYTHON_MINOR: ${{ matrix.python_minor }}
68-
# name: Windows x86_64 (3.${{ matrix.python_minor }}, ${{ matrix.pair.elixir }}, ${{ matrix.pair.otp }})
69-
# steps:
70-
# - uses: actions/checkout@v4
71-
# - uses: erlef/setup-beam@v1
72-
# with:
73-
# otp-version: ${{ matrix.pair.otp }}
74-
# elixir-version: ${{ matrix.pair.elixir }}
75-
# - uses: actions/cache@v4
76-
# with:
77-
# path: |
78-
# deps
79-
# _build
80-
# key: ${{ runner.os }}-mix-${{ matrix.pair.elixir }}-${{ matrix.pair.otp }}-${{ hashFiles('**/mix.lock') }}
81-
# restore-keys: |
82-
# ${{ runner.os }}-mix-${{ matrix.pair.elixir }}-${{ matrix.pair.otp }}-
83-
# - uses: ilammy/msvc-dev-cmd@v1
84-
# - run: mix deps.get
85-
# - run: mix deps.compile
86-
# - run: mix test
49+
- run: mix test
8750

88-
# macos:
89-
# runs-on: macos-13
90-
# strategy:
91-
# fail-fast: false
92-
# matrix:
93-
# include:
94-
# - pair: { elixir: "1.15.8", otp: "25.3" }
95-
# python_minor: "10"
96-
# - pair: { elixir: "1.18.1", otp: "27.2" }
97-
# python_minor: "13"
98-
# env:
99-
# MIX_ENV: test
100-
# PYTHONX_TEST_PYTHON_MINOR: ${{ matrix.python_minor }}
101-
# name: macOS x86_64 (3.${{ matrix.python_minor }}, ${{ matrix.pair.elixir }}, ${{ matrix.pair.otp }})
102-
# steps:
103-
# - uses: actions/checkout@v4
104-
# - run: |
105-
# curl -fsSO https://elixir-lang.org/install.sh
106-
# sh install.sh elixir@${{ matrix.pair.elixir }} otp@${{ matrix.pair.otp }}
107-
# otp_bin=($HOME/.elixir-install/installs/otp/*/bin)
108-
# elixir_bin=($HOME/.elixir-install/installs/elixir/*/bin)
109-
# echo "$otp_bin" >> "$GITHUB_PATH"
110-
# echo "$elixir_bin" >> "$GITHUB_PATH"
111-
# - uses: actions/cache@v4
112-
# with:
113-
# path: |
114-
# deps
115-
# _build
116-
# key: ${{ runner.os }}-mix-${{ matrix.pair.elixir }}-${{ matrix.pair.otp }}-${{ hashFiles('**/mix.lock') }}
117-
# restore-keys: |
118-
# ${{ runner.os }}-mix-${{ matrix.pair.elixir }}-${{ matrix.pair.otp }}-
119-
# - run: mix deps.get
120-
# - run: mix deps.compile
121-
# - run: mix test
51+
- run: mix compile --force --warnings-as-errors --no-optional-deps

test/test_helper.exs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1 @@
1-
python_minor = System.get_env("PYTHONX_TEST_PYTHON_MINOR", "13") |> String.to_integer()
2-
3-
Pythonx.uv_init("""
4-
[project]
5-
name = "project"
6-
version = "0.0.0"
7-
requires-python = "==3.#{python_minor}.*"
8-
dependencies = [
9-
"numpy==2.1.2"
10-
]
11-
""")
12-
13-
ExUnit.start()
1+
IO.inspect(:public_key.get_certs())

0 commit comments

Comments
 (0)