Skip to content

Commit 55f9bd7

Browse files
Merge pull request #58 from Projeto-Jupiter/feature/continuous_integration
Feature/continuous integration
2 parents 1ef6666 + 30c8c4e commit 55f9bd7

File tree

2 files changed

+82
-0
lines changed

2 files changed

+82
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
## Pull request checklist
2+
3+
Please check if your PR fulfills the following requirements:
4+
- [ ] Tests for the changes have been added (for bug fixes / features)
5+
- [ ] Docs have been reviewed and added / updated if needed (for bug fixes / features)
6+
- [ ] Build (`python setup.py install`) was run locally and any changes were pushed
7+
- [ ] Lint (`black rocketpy`) has passed locally and any fixes were made for failures
8+
- [ ] All tests (`pytest --runslow`) have passed locally
9+
10+
## Pull request type
11+
<!-- Please do not submit updates to dependencies unless it fixes an issue. -->
12+
<!-- Please try to limit your pull request to one type, submit multiple pull requests if needed. -->
13+
14+
Please check the type of change your PR introduces:
15+
- [ ] Bugfix
16+
- [ ] Feature
17+
- [ ] Code style update (formatting, renaming)
18+
- [ ] Refactoring (no functional changes, no api changes)
19+
- [ ] Build related changes
20+
- [ ] Documentation content changes
21+
- [ ] Other (please describe):
22+
23+
## What is the current behavior?
24+
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->
25+
26+
RocketPy's code did not have any unit tests setup.
27+
28+
29+
## What is the new behavior?
30+
<!-- Please describe the behavior or changes that are being added by this PR. -->
31+
32+
-
33+
-
34+
35+
## Does this introduce a breaking change?
36+
37+
- [ ] Yes
38+
- [ ] No
39+
40+
<!-- If this introduces a breaking change, please describe the impact and migration path for existing applications below. -->
41+
42+
43+
## Other information
44+
45+
<!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. -->
46+
47+
-
48+
-
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Test and Lint
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os: [ubuntu-latest, macos-latest, windows-latest]
12+
python-version: [3.8]
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install black pytest
24+
pip install -r requirements.txt
25+
- name: Lint with black
26+
run: |
27+
black rocketpy
28+
black tests
29+
- name: Build and RocketPy
30+
run: |
31+
python setup.py install
32+
- name: Test with pytest
33+
run: |
34+
pytest

0 commit comments

Comments
 (0)