Skip to content

Remove sensitive data #68

Remove sensitive data

Remove sensitive data #68

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python package
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
env:
PDM_VERSION: "2.*"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} (PDM ${{ env.PDM_VERSION }})
uses: pdm-project/setup-pdm@v3
with:
python-version: ${{ matrix.python-version }}
version: ${{ env.PDM_VERSION }}
cache: true
- name: Install dependencies
run: pdm sync -G testing
- name: Run pytest
env:
ASYNCORD_TEST_TOKEN: ${{ secrets.ASYNCORD_TEST_TOKEN }}
ASYNCORD_TEST_CHANNEL_ID: ${{ vars.ASYNCORD_TEST_CHANNEL_ID }}
ASYNCORD_TEST_VOICE_CHANNEL_ID: ${{ vars.ASYNCORD_TEST_VOICE_CHANNEL_ID }}
ASYNCORD_TEST_GUILD_ID: ${{ vars.ASYNCORD_TEST_GUILD_ID }}
ASYNCORD_TEST_USER_ID: ${{ vars.ASYNCORD_TEST_USER_ID }}
ASYNCORD_TEST_MESSAGE_ID: ${{ vars.ASYNCORD_TEST_MESSAGE_ID }}
ASYNCORD_TEST_MEMBER_ID: ${{ vars.ASYNCORD_TEST_MEMBER_ID }}
ASYNCORD_TEST_GUILD_PREFIX_TO_DELETE: "${{ vars.ASYNCORD_TEST_GUILD_PREFIX_TO_DELETE }}"
ASYNCORD_TEST_APP_ID: ${{ vars.ASYNCORD_TEST_APP_ID }}
ASYNCORD_TEST_ROLE_ID: ${{ vars.ASYNCORD_TEST_ROLE_ID }}
ASYNCORD_TEST_USER_TO_BAN: ${{ vars.ASYNCORD_TEST_USER_TO_BAN }}
run: pdm run pytest