Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): move pytest from CircleCi to Github Actions #241

Merged
merged 1 commit into from
Jul 20, 2022
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
157 changes: 0 additions & 157 deletions .circleci/config.yml

This file was deleted.

4 changes: 3 additions & 1 deletion .github/workflows/CI.yml → .github/workflows/build-CI.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: CI
# CI to build the project for Linux, Windows, and MacOS

name: Build CI

on:
push:
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/python-CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# CI to build the Python code

on: [push, pull_request]

name: Python Continuous integration

jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r robyn/test-requirements.txt
curl https://sh.rustup.rs -sSf | sh -s -- -y
- name: Setup Rust part of the project
run: |
source $HOME/.cargo/env
maturin build -i python --release --universal2 --out dist --no-sdist
pip install --force-reinstall dist/robyn*.whl
- name: Test with pytest
run: |
pytest ./integration_tests
2 changes: 2 additions & 0 deletions .github/workflows/rust-CI.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# CI to build, test, format, and lint the Rust code

on: [push, pull_request]

name: Rust Continuous integration
Expand Down
2 changes: 1 addition & 1 deletion robyn/test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pytest==6.2.5
maturin
maturin==0.12.11
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! ;)

watchdog
requests==2.26.0
uvloop==0.16.0
Expand Down