Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions .github/workflows/ci.yaml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Install & Import

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
install:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install package
run: pip install .

- name: Verify import
# Run outside the repo root: the checkout contains act.py, which would
# shadow the installed `act` package when cwd is on sys.path.
working-directory: ${{ runner.temp }}
run: python -c "import act; print(f'ACT imported successfully from {act.__file__}')"

- name: Verify CLI entry point
run: act --help
Comment on lines +11 to +34
32 changes: 32 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Regression Tests

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install package with test dependencies
run: pip install ".[test]" pytest

- name: Run regression tests
# Run outside the repo root and against the installed package: the
# checkout contains act.py, which would shadow the installed `act`
# package when cwd is on sys.path.
working-directory: ${{ runner.temp }}
run: python -m pytest --pyargs act.tests -v --tb=short
Comment on lines +11 to +32
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
__pycache__
*.swp
*.swo
*.egg-info/
latest_act_out
Loading
Loading