-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace Travis CI with GitHub actions
- Loading branch information
Showing
3 changed files
with
36 additions
and
20 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Polysh Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
polysh-tests: | ||
name: python | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
|
||
- name: Set up Python | ||
run: uv python install | ||
|
||
- name: Install the project | ||
run: uv sync --all-extras --dev | ||
|
||
- name: Prepare test environment | ||
run: | ||
- sudo apt-get update | ||
- sudo apt-get install -y openssh-server | ||
- sudo service ssh start | ||
- ssh-keygen -t ed25519 -N "" -f ~/.ssh/id_rsa | ||
- cat ~/.ssh/id_ed25519.pub >> ~/.ssh/authorized_keys | ||
- echo -e "Host *\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config | ||
- ssh -vvvv localhost exit | ||
|
||
- name: Run tests | ||
run: uv run python -m unittest discover --verbose |
This file was deleted.
Oops, something went wrong.