Skip to content

Commit cae0df8

Browse files
committed
chore: Migrate CI to GHA
1 parent 40f924c commit cae0df8

6 files changed

Lines changed: 31 additions & 34 deletions

File tree

‎.circleci/config.yml‎

Lines changed: 0 additions & 25 deletions
This file was deleted.

‎.github/workflows/test.yml‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
unit-test:
11+
name: Unit tests
12+
runs-on: ubuntu-24.04
13+
steps:
14+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
15+
with:
16+
persist-credentials: false
17+
18+
- uses: jdx/mise-action@b44d12e7d0d8ee7461bb893e1b1993500433185b # v5.2.7
19+
with:
20+
version: 2026.11.3
21+
22+
- name: Run tests
23+
working-directory: test
24+
run: tox

‎hooks/check_skip_env.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
import re
33
import sys
44
import argparse

‎mise.toml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[tools]
2+
python = "3.11.18"
3+
uv = "0.13.7"
4+
"pipx:tox" = "4.67.13"

‎test/check_skip_env_test.py‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
import os
2-
import sys
32
import glob
3+
import subprocess
44
import unittest
55

6-
if sys.version_info[0] < 3:
7-
import subprocess32 as subprocess
8-
else:
9-
import subprocess
10-
116

127
class TestCheckSkipEnv(unittest.TestCase):
138
def setUp(self):

‎test/tox.ini‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
[tox]
22
skipsdist = True
3-
envlist = py27,py311
3+
envlist = py311
44

55
[testenv]
66
deps =
77
pytest
8-
subprocess32; python_version < '3.0'
98
commands = pytest

0 commit comments

Comments
 (0)