Skip to content

library: added upload-artifact that exposes the github.token in build artifacts #340

library: added upload-artifact that exposes the github.token in build artifacts

library: added upload-artifact that exposes the github.token in build artifacts #340

Workflow file for this run

name: Test PR
on: [pull_request]
permissions:
contents: read
jobs:
python-style:
name: Style-check and lint Python files
runs-on: ubuntu-latest
steps:
- uses: cycodelabs/cimon-action@v0
with:
prevent: true
fail-on-error: true
allowed-hosts: >
files.pythonhosted.org
pypi.org
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: python -m pip install black flake8
- name: Black
run: python -m black --diff --check .
# A job that runs integration tests in an isolated environment against
# a predefined organization: RavenIntegrationTests
test_raven:
runs-on: ubuntu-latest
steps:
- uses: cycodelabs/cimon-action@v0
with:
# Turn prevent once cimon docker compose bug is fixed
# prevent: true
fail-on-error: true
- name: Checkout
uses: actions/checkout@v4
- name: Test Organization
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
make test-build
# A job for testing the setup process and unit tests of RAVEN against
# different versions of Python
test_raven_package:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- uses: cycodelabs/cimon-action@v0
with:
# Turn prevent once cimon docker compose bug is fixed
# prevent: true
fail-on-error: true
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Build Package
run: python -m pip install .
- name: Setup environment
run: make setup
- name: Test Raven
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
raven download account --token $GITHUB_TOKEN --account-name RavenIntegrationTests
raven index
raven report --format json | jq > /dev/null
- name: Run Unit Tests
run: pytest -v tests/unit