Skip to content

Commit

Permalink
Replace Travis CI with GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kofrezo committed Nov 11, 2024
1 parent d6e1a8f commit 132768b
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 20 deletions.
Empty file removed .github/tests.yml
Empty file.
36 changes: 36 additions & 0 deletions .github/workflows/tests.yml
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
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

0 comments on commit 132768b

Please sign in to comment.