Skip to content

Commit

Permalink
Merge pull request #3 from EUDAT-B2ACCESS/dev
Browse files Browse the repository at this point in the history
Upgrade to python3
  • Loading branch information
mwinkens authored Jul 30, 2024
2 parents 0b52939 + ad46f73 commit 689a7ca
Show file tree
Hide file tree
Showing 8 changed files with 308 additions and 196 deletions.
3 changes: 3 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[flake8]
max-line-length = 120
exclude = dist, tests
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on: [push, pull_request]

jobs:
all:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.10", "3.11"]

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
pip install -r requirements.txt
- name: Build project
run: make

- name: Test probe
run: pytest

- name: Lint with flake8
run: flake8 .

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: b2access-probe-py${{ matrix.python-version }}
path: '*.tar.gz'
if-no-files-found: 'error'
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.tar.gz
.idea
__pycache__/
Loading

0 comments on commit 689a7ca

Please sign in to comment.