Spaces:
Build error
Build error
atodorov284 commited on
Commit ·
4594d6a
1
Parent(s): 169d05e
Added reproducibility and style workflows
Browse files- .github/.keep +0 -0
- .github/workflows/running.yml +26 -0
- .github/workflows/style.yml +29 -0
.github/.keep
ADDED
|
File without changes
|
.github/workflows/running.yml
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Running code
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
push:
|
| 5 |
+
branches:
|
| 6 |
+
- main
|
| 7 |
+
|
| 8 |
+
jobs:
|
| 9 |
+
check-reproducibility:
|
| 10 |
+
runs-on: ubuntu-latest
|
| 11 |
+
permissions: write-all
|
| 12 |
+
|
| 13 |
+
steps:
|
| 14 |
+
- name: Checkout repository
|
| 15 |
+
uses: actions/checkout@v2
|
| 16 |
+
|
| 17 |
+
- name: Run setup script
|
| 18 |
+
run: pip3 install -r requirements.txt
|
| 19 |
+
|
| 20 |
+
- name: Run main.py
|
| 21 |
+
id: run_main
|
| 22 |
+
run: |
|
| 23 |
+
set +e
|
| 24 |
+
python3 main.py
|
| 25 |
+
exit_code=$?
|
| 26 |
+
echo "EXIT_CODE=${exit_code}" >> $GITHUB_OUTPUT
|
.github/workflows/style.yml
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Style check
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
push:
|
| 5 |
+
branches:
|
| 6 |
+
- main
|
| 7 |
+
|
| 8 |
+
jobs:
|
| 9 |
+
flake8_py3:
|
| 10 |
+
permissions: write-all
|
| 11 |
+
runs-on: ubuntu-latest
|
| 12 |
+
steps:
|
| 13 |
+
- name: Setup Python
|
| 14 |
+
uses: actions/setup-python@v1
|
| 15 |
+
with:
|
| 16 |
+
python-version: 3.8.18
|
| 17 |
+
architecture: x64
|
| 18 |
+
- name: Checkout code
|
| 19 |
+
uses: actions/checkout@v2
|
| 20 |
+
- name: Install flake8
|
| 21 |
+
run: pip install flake8
|
| 22 |
+
- name: Configure Flake8
|
| 23 |
+
run: echo "[flake8]" > .flake8 && echo "extend-ignore = E402" >> .flake8
|
| 24 |
+
- name: Run flake8
|
| 25 |
+
uses: suo/flake8-github-action@releases/v1
|
| 26 |
+
with:
|
| 27 |
+
checkName: "flake8_py3"
|
| 28 |
+
env:
|
| 29 |
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|